import { type ModelTypeString } from '@dereekb/util'; /** * Short string identifier for categorizing different kinds of website links (e.g., "fb" for Facebook, "w" for generic website). */ export type WebsiteLinkType = ModelTypeString; /** * Fallback link type used when the actual type is not known. */ export declare const UNKNOWN_WEBSITE_LINK_TYPE: WebsiteLinkType; /** * Maximum character length for a {@link WebsiteLinkType} string. */ export declare const WEBSITE_LINK_TYPE_MAX_LENGTH = 32; /** * Regex pattern that validates a {@link WebsiteLinkType} as 1-32 alphanumeric characters. */ export declare const WEBSITE_LINK_TYPE_REGEX: RegExp; /** * Checks whether the given string is a valid {@link WebsiteLinkType}. * * @param input - Value to test against the website link type pattern. * @returns True if it matches the alphanumeric 1-32 character pattern. * * @example * ```typescript * isValidWebsiteLinkType('fb'); // true * isValidWebsiteLinkType(''); // false * isValidWebsiteLinkType('a-b'); // false (hyphen not allowed) * ``` */ export declare function isValidWebsiteLinkType(input: string): input is WebsiteLinkType; /** * Pipe-separated or raw string encoding of website link data. * * @semanticType * @semanticTopic string * @semanticTopic dereekb-model:website-link */ export type WebsiteLinkEncodedData = string; /** * Maximum character length for the encoded data string in a {@link WebsiteLink}. */ export declare const WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH = 1000; /** * A compact representation of a typed link, storing a short type code and encoded data string. * * Used as the base structure for encoding social media profiles, file links, emails, and other external references. */ export interface WebsiteLink { /** * Type of link. */ t: WebsiteLinkType; /** * Encoded website link data */ d: WebsiteLinkEncodedData; } /** * ArkType schema for a {@link WebsiteLink}. */ export declare const websiteLinkType: import("arktype/internal/variants/object.ts").ObjectType<{ t: string; d: string; }, {}>;