@gander-social-atproto/syntax
Version:
Validation for atproto identifiers and formats: DID, handle, NSID, AT URI, etc
23 lines • 687 B
TypeScript
export * from './aturi_validation';
export declare const ATP_URI_REGEX: RegExp;
export declare class AtUri {
hash: string;
host: string;
pathname: string;
searchParams: URLSearchParams;
constructor(uri: string, base?: string);
static make(handleOrDid: string, collection?: string, rkey?: string): AtUri;
get protocol(): string;
get origin(): string;
get hostname(): string;
set hostname(v: string);
get search(): string;
set search(v: string);
get collection(): string;
set collection(v: string);
get rkey(): string;
set rkey(v: string);
get href(): string;
toString(): string;
}
//# sourceMappingURL=aturi.d.ts.map