@freeword/meta
Version:
Meta package for Freeword: exports all core types, constants, and utilities from the src/ directory.
29 lines • 2.73 kB
TypeScript
import type { StringMaybe, URLStr } from '../types/PrimTypeAliases.ts';
import type { Anypath } from '../types/index.ts';
import { type ZodType } from './BootChecks.ts';
export declare const urlstr: import("./BootChecks.ts").ZodString;
export declare const ipv4host: import("./BootChecks.ts").ZodString;
export declare const ipv6host: import("./BootChecks.ts").ZodString;
export declare const hostname: import("./BootChecks.ts").ZodString;
export declare const hostorip: import("./BootChecks.ts").ZodString;
export declare const portnum: import("./BootChecks.ts").ZodPipeline<import("../types/index.ts").ZodUnion<[import("./BootChecks.ts").ZodPipeline<import("./BootChecks.ts").ZodString, import("../types/index.ts").ZodNumber>, import("../types/index.ts").ZodNumber]>, import("../types/index.ts").ZodNumber>;
export declare const hostPortStr: import("./BootChecks.ts").ZodString;
export declare const hostPortPair: import("../types/index.ts").ZodTuple<[import("./BootChecks.ts").ZodString, import("../types/index.ts").ZodOptional<import("../types/index.ts").ZodNullable<import("./BootChecks.ts").ZodPipeline<import("../types/index.ts").ZodUnion<[import("./BootChecks.ts").ZodPipeline<import("./BootChecks.ts").ZodString, import("../types/index.ts").ZodNumber>, import("../types/index.ts").ZodNumber]>, import("../types/index.ts").ZodNumber>>>], null>;
export declare const strToHostPort: ZodType<HostPortPair, any, _HostPortPairSk>;
export declare const urlobj: ZodType<import("url").URL, import("../types/index.ts").ZodTypeDef, import("url").URL, import("../types/index.ts").ZodTypeDef>;
export declare const liveurl: ZodType<URL, any, string | URL>;
export declare const urlpath: import("../types/index.ts").ZodEffects<import("./BootChecks.ts").ZodString, string, string>;
export declare const parsedUrlpath: import("../types/index.ts").ZodEffects<import("./BootChecks.ts").ZodString, string, string>;
/**
* generally intended to be called as [pathOrURL, hostPortStr?, protoStr?]:
* eg ['/foo', 'localhost:8080', 'https'] or ['https://whatever.com:8080/foo', undefined], etc
* For idempotence, may be called with URL object or URLStr;
* and the second arg may be a 'host:port', 'hostname', or [hostname?, port?] tuple*/
export declare const urlOrPathToLiveurl: ZodType<URL, any, string | URL | _HostPortSketchTuple>;
export type HostPortPair = [string, number | null];
type _PortMaybe = number | StringMaybe;
type _HostPortPairSk = readonly [StringMaybe, _PortMaybe?] | string;
type _HostPortPairMaybe = readonly [StringMaybe, _PortMaybe?] | string | null | undefined;
type _HostPortSketchTuple = readonly [URLStr | Anypath | URL, _HostPortPairMaybe?, StringMaybe?];
export {};
//# sourceMappingURL=UrlChecks.d.ts.map