//! atproto-static-web   A simple web viewer for AT Proto.
//! Copyright (C) 2025  AverageHelper
//!
//! This program is free software: you can redistribute it and/or modify
//! it under the terms of the GNU General Public License as published by
//! the Free Software Foundation, either version 3 of the License, or
//! (at your option) any later version.
//!
//! This program is distributed in the hope that it will be useful,
//! but WITHOUT ANY WARRANTY; without even the implied warranty of
//! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//! GNU General Public License for more details.
//!
//! You should have received a copy of the GNU General Public License
//! along with this program.  If not, see <https://www.gnu.org/licenses/>.

pub mod generic;
pub mod get_post_thread;
pub mod get_profile;
pub mod validations;

pub use get_post_thread::{get_post_thread, get_post_with_uri};
pub use get_profile::get_profile;

// use crate::atproto::{DecentralizedIdentifier, Handle};

// pub async fn resolve_handle(handle: Handle) -> Result<DecentralizedIdentifier, ()> {
// 	// TODO: implement https://atproto.com/specs/handle#handle-resolution

// 	// Spec: "The DNS TXT method is the recommended and preferred resolution method for individual handle configuration"
// 	// TODO: Get TXT record for handle
// 	// TODO: Failing this, try "{handle}/.well-known/atproto-did"

// 	Err(())
// }
