import { Passport } from "@assistant-ui/passport"; //#region src/auth.d.ts declare const isIP: (value: string) => 0 | 4 | 6; type HostRule = { kind: "any"; } | { kind: "cidr"; source: string; base: number; mask: number; } | { kind: "suffix"; suffix: string; } | { kind: "ip"; ip: string; } | { kind: "hostname"; hostname: string; }; type RegistryPolicy = { name: string; namespaces: string[]; backendHosts: HostRule[]; /** Registerable hostnames/envs, hostname-aware mode only. */ hostnames: HostRule[]; envs: HostRule[]; }; declare const classifyHost: (raw: string) => HostRule; declare const hostAllowed: (rules: HostRule[], rawHostname: string) => boolean; declare const registryPolicy: (account: Passport.Principal, role: "pinboard:operator" | "pinboard:worker", hostnameAware?: boolean) => RegistryPolicy; declare const namespaceAllowed: (entry: RegistryPolicy, ns: string) => boolean; //#endregion export { HostRule, RegistryPolicy, classifyHost, hostAllowed, isIP, namespaceAllowed, registryPolicy }; //# sourceMappingURL=auth.d.ts.map