import * as _mappedin_mvf_v22 from "@mappedin/mvf-v2"; import { AnnotationCollection, AnnotationSymbol, AreaCollection, AreaId, BaseTextAreaProperties, Category, CategoryId, Connection as Connection$1, Details, EnterpriseCategory as EnterpriseCategory$1, EnterpriseCategoryId, EnterpriseLocation as EnterpriseLocation$1, EnterpriseLocationId, EnterpriseLocationInstance, EnterpriseTexture, EnterpriseVenue as EnterpriseVenue$1, EnterpriseVenueType, EntranceCollection, EntranceFeature, Facade as Facade$1, Feature as Feature$1, FeatureCollection as FeatureCollection$1, FloatingFloorTextProperties, FloorCollection, FloorId, FloorProperties, FloorStack as FloorStack$1, FloorTextCommonProperties, Geometry as Geometry$1, Hyperlink as Hyperlink$1, Image, Language, LineStringStyle, LineStringStyle as TMVFLineStringStyle, Location, LocationId, LocationLink, LocationSocial, LocationSocial as LocationSocial$1, LocationState, LocationState as LocationState$1, MVFv2_STANDARD_MVFv3, MultiPolygon as MultiPolygon$1, NavigationFlagDeclarations, NodeCollection, NodeId, ObstructionCollection, ObstructionCollection as ObstructionCollection$1, ObstructionFeature, ObstructionId, OpeningHoursSpecification, OperationHours, OperationHours as OperationHours$1, ParsedMVF, ParsedMVF as TMVF, ParsedMVFLocalePack, Point as Point$1, PointStyle, PointStyle as TMVFPointStyle, Polygon as Polygon$1, PolygonStyle, PolygonStyle as TMVFPolygonStyle, SiblingGroup, SiblingGroup as SiblingGroup$1, SpaceCollection, SpaceCollection as SpaceCollection$1, SpaceFeature, SpaceId, SpaceProperties, Style as TMVFStyle, StyleCollection, StyleCollection as TMVFStyleCollection, TilesetStyle } from "@mappedin/mvf-v2"; import { MVFv2_STANDARD_MVFv3 as MVFv2_STANDARD_MVFv3$1, ParsedMVF as ParsedMVF$1, RawMVF } from "@mappedin/mvf-v2/no-validator-lite"; import * as _mappedin_renderer_three0 from "@mappedin/renderer-three"; import { AddLabelOptionsInternal, AddText3DOptions, AddText3DOptions as AddText3DOptions$1, AddText3DPointOptions, CameraSystemState, ColorString, DebugState, DebugState as DebugState$1, EntityId, EnvMapOptions, EnvMapOptions as EnvMapOptions$1, GLTFExportOptions as GLTFExportOptions$1, GroupContainerState, ISystemPlugin, ISystemPlugin as ISystemPlugin$1, ImagePlacementOptions, InitializeModelState, InitializeModelState as InitializeModelState$1, InitializeText3DState, InsetPadding, InsetPadding as InsetPadding$1, InsetPaddingOption, InsetPaddingOption as InsetPaddingOption$1, InterpolateOn, Interpolation, LabelAppearance as LabelAppearance$1, LabelRenderedState, LabelTextPlacement as LabelTextPlacement$1, LineStyle, LineStyle as LineStyle$1, MapViewState, MarkerState, OutlinesOptions, PaintStyle, PaintStyle as PaintStyle$1, PathState, PathWidth, PathWidth as PathWidth$1, PixelWidth, Position as Position$1, RendererCore, RendererCoreOptions, RendererCoreOptions as RendererCoreOptions$1, Shading, Text3DState, WatermarkUpdateOptions } from "@mappedin/renderer-three"; import * as _tweenjs_tween_js0 from "@tweenjs/tween.js"; import { Group, Tween } from "@tweenjs/tween.js"; import { CustomLayerInterface, IControl, Map as Map$1, MapEventType } from "@mappedin/outdoor-context"; import { ANIMATION_TWEENS, PathWidth as PathWidth$2, PathWidth as PathWidth$3, enableTestMode } from "@mappedin/renderer-shared"; import { MatchInfo, SearchResult as SearchResult$1, Suggestion, Suggestion as Suggestion$1 } from "minisearch"; import * as three0 from "three"; import { AmbientLight, BatchedMesh, BatchedMeshGeometryRange, Box3, BufferAttribute, BufferGeometry, Camera as Camera$1, Color, DirectionalLight, Group as Group$1, Intersection, LineSegments, Matrix4, Mesh, MeshLambertMaterial, MeshLambertMaterialParameters, Object3D, Object3DEventMap, PerspectiveCamera, Plane, PlaneGeometry, Raycaster, Scene, ShaderMaterial, Texture, TubeGeometry, Vector2, Vector3, WebGLRenderer } from "three"; import { BatchedText, BatchedText as BatchedText$1, Text, Text as Text$1 } from "troika-three-text"; import "../../renderer-three/src/styles/interactions.scss"; import "../../renderer-three/src/styles/html-controls.scss"; import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; import "../../renderer-three/src/styles/outdoor-context.css"; import "../../2d-labels-markers/src/styles/marker.scss"; import "../../2d-labels-markers/src/styles/collisions.scss"; //#region ../../node_modules/.pnpm/@types+geojson@7946.0.8/node_modules/@types/geojson/index.d.ts /** * The valid values for the "type" property of GeoJSON geometry objects. * https://tools.ietf.org/html/rfc7946#section-1.4 */ type GeoJsonGeometryTypes = Geometry['type']; /** * The value values for the "type" property of GeoJSON Objects. * https://tools.ietf.org/html/rfc7946#section-1.4 */ type GeoJsonTypes = GeoJSON$1['type']; /** * Bounding box * https://tools.ietf.org/html/rfc7946#section-5 */ type BBox = [number, number, number, number] | [number, number, number, number, number, number]; /** * A Position is an array of coordinates. * https://tools.ietf.org/html/rfc7946#section-3.1.1 * Array should contain between two and three elements. * The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), * but the current specification only allows X, Y, and (optionally) Z to be defined. */ type Position = number[]; // [number, number] | [number, number, number]; /** * The base GeoJSON object. * https://tools.ietf.org/html/rfc7946#section-3 * The GeoJSON specification also allows foreign members * (https://tools.ietf.org/html/rfc7946#section-6.1) * Developers should use "&" type in TypeScript or extend the interface * to add these foreign members. */ interface GeoJsonObject { // Don't include foreign members directly into this type def. // in order to preserve type safety. // [key: string]: any; /** * Specifies the type of GeoJSON object. */ type: GeoJsonTypes; /** * Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. * The value of the bbox member is an array of length 2*n where n is the number of dimensions * represented in the contained geometries, with all axes of the most southwesterly point * followed by all axes of the more northeasterly point. * The axes order of a bbox follows the axes order of geometries. * https://tools.ietf.org/html/rfc7946#section-5 */ bbox?: BBox | undefined; } /** * Union of GeoJSON objects. */ type GeoJSON$1 = Geometry | Feature | FeatureCollection; /** * Geometry object. * https://tools.ietf.org/html/rfc7946#section-3 */ type Geometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon | GeometryCollection; type GeometryObject = Geometry; /** * Point geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.2 */ interface Point extends GeoJsonObject { type: "Point"; coordinates: Position; } /** * MultiPoint geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.3 */ interface MultiPoint extends GeoJsonObject { type: "MultiPoint"; coordinates: Position[]; } /** * LineString geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.4 */ interface LineString extends GeoJsonObject { type: "LineString"; coordinates: Position[]; } /** * MultiLineString geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.5 */ interface MultiLineString extends GeoJsonObject { type: "MultiLineString"; coordinates: Position[][]; } /** * Polygon geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.6 */ interface Polygon extends GeoJsonObject { type: "Polygon"; coordinates: Position[][]; } /** * MultiPolygon geometry object. * https://tools.ietf.org/html/rfc7946#section-3.1.7 */ interface MultiPolygon extends GeoJsonObject { type: "MultiPolygon"; coordinates: Position[][][]; } /** * Geometry Collection * https://tools.ietf.org/html/rfc7946#section-3.1.8 */ interface GeometryCollection extends GeoJsonObject { type: "GeometryCollection"; geometries: Geometry[]; } type GeoJsonProperties = { [name: string]: any; } | null; /** * A feature object which contains a geometry and associated properties. * https://tools.ietf.org/html/rfc7946#section-3.2 */ interface Feature extends GeoJsonObject { type: "Feature"; /** * The feature's geometry */ geometry: G; /** * A value that uniquely identifies this feature in a * https://tools.ietf.org/html/rfc7946#section-3.2. */ id?: string | number | undefined; /** * Properties associated with this feature. */ properties: P$1; } /** * A collection of feature objects. * https://tools.ietf.org/html/rfc7946#section-3.3 */ interface FeatureCollection extends GeoJsonObject { type: "FeatureCollection"; features: Array>; } //#endregion //#region ../packages/mvf-utils/constants.d.ts /** * Represents the environment state configuration. * @example * const mapData = getMapData({ * key: '', * secret: '', * environment: 'eu' * }) */ type Environment = { /** * The base URI for the API. */ baseUri: string; /** * The base URI for authentication. */ baseAuthUri: string; /** * The base URI for analytics. */ analyticsBaseUri: string; /** * The URI for the tile server. */ tileServerUri: string; }; type InternalServiceEnvironment = 'us' | 'us-enterprise' | 'eu' | 'us-staging-enterprise' | 'us-staging-self-serve'; type ServiceEnvironment = 'us' | 'eu'; //#endregion //#region ../packages/mvf-utils/mvf-utils.d.ts /** * Options for configuring search functionality. */ type TSearchOptions = { /** * Indicates whether search functionality is enabled. */ enabled: boolean; }; type TGetMapDataSharedOptions = { /** * Mappedin map ID. */ mapId: string; /** * Optionally provide a custom base URL for the Mappedin API request. * Use the {@link Environment | `environment`} setting to switch environments */ baseUri?: string; /** * Optionally provide a custom base URL for authentication when obtaining an access token. * Use the {@link Environment | `environment`} setting to switch environments. */ baseAuthUri?: string; /** * Optionally provide an entirely custom URL for authentication when obtaining an access token. * @hidden * @internal */ customAuthUri?: string; /** * Callback for when the Mappedin map data has been fetched and parsed as Mappedin Venue Format (MVF) data. * @param mvf Parsed MVF data. */ onMVFParsed?: (mvf: ParsedMVF$1) => void; /** * Load different view of mvf data based on configId */ viewId?: string; /** * set the target SDK environment * @default 'us' * @example * const mapData = getMapData({ * key: '', * secret: '', * environment: 'eu' * }) */ environment?: ServiceEnvironment; /** * The language of the map data. * The ISO 639-1 language code to change to (e.g., 'en' for English, 'fr' for French). Check ({@link EnterpriseVenue.languages}) for available languages */ language?: string; /** * Whether to use browser's language settings as fallback if the supplied language code is not available. * @default true * */ fallbackToNavigatorLanguage?: boolean; /** * Analytics configuration. */ analytics?: { /** * Whether to log analytics events. * @default false */ logEvents?: boolean; /** * Whether to send analytics events to the server. * @default false */ sendEvents?: boolean; /** * Custom base URI for analytics requests. If not provided, the default analytics endpoint will be used. * Use the {@link Environment | `environment`} setting to switch environments. */ baseUri?: string; /** * Context for analytics events. * @default 'websdk' * @internal */ context?: string; /** * Version override for analytics events. * @internal */ version?: string; /** * The externalId parameter attaches a custom tracking identifier to every analytics event sent during the session. * This is useful for correlating Mappedin analytics data with an external system — for example, linking a map session * back to a specific marketing campaign, CRM record, or third-party tracking platform. */ externalId?: string; }; search?: TSearchOptions; /** * Fetch bearer and SAS tokens for the map ahead of time and keep them up to date in the background. * @default true */ prefetchTokens?: boolean; /** * @hidden * @internal */ layoutId?: 'draft'; /** * @hidden * @internal */ mvfVersion?: '2.0.0' | '2.0.0-c' | '3.0.0'; }; /** * Fetch map data using a key/secret pair and additional options. * * **Data-model note:** The key you supply determines which data model the API returns. * - Keys starting with `"mik_"` use the **Maker** data model * (`LocationProfile`, `LocationCategory`). * - All other keys use the **CMS / Enterprise** data model * (`EnterpriseLocation`, `EnterpriseCategory`). * * Using the wrong data types for your key type will return empty results. * * @interface */ type TGetMapDataWithCredentialsOptions = { /** * Mappedin auth key. * * Keys starting with `"mik_"` use the Maker data model * (`LocationProfile`, `LocationCategory`). * All other keys use the CMS/Enterprise data model * (`EnterpriseLocation`, `EnterpriseCategory`). * Using the wrong data types for your key type will return empty results. */ key: string; /** * Mappedin auth secret. */ secret: string; } & TGetMapDataSharedOptions; /** * @interface */ type TGetMapDataWithAccessTokenOptions = { /** * Mappedin access token. */ accessToken: string; } & TGetMapDataSharedOptions; type TGetMapDataOptions = TGetMapDataWithCredentialsOptions | TGetMapDataWithAccessTokenOptions; /** * @internal */ declare function parseMVFv2(raw: RawMVF): ParsedMVF$1; /** * @internal */ declare function unzipMVFv2(data: Uint8Array): Promise; type LocalePackUrls = { [key: string]: string; }; declare function createEnvControl(): { /** * @internal */ updateByUserOption(userOption: TGetMapDataOptions): void; /** * @internal */ updateTileServerBaseUrl(url: string): void; /** * @internal */ updateEnvironment(env: InternalServiceEnvironment): void; /** * @internal */ setEnterprise(isEnterprise: boolean): void; getBaseUri(): string; getBaseAuthUri(): string; getAnalyticsBaseUri(): string; getTileServerUri(): string; reset(): void; /** * @internal */ __getState: () => Environment; }; type EnvControl = ReturnType; /** * Result type for MVF parsing that includes both v2 (converted) and optional v3 (original) */ type ParsedMVFResult = { mvf2: ParsedMVF$1; mvf3?: MVFv2_STANDARD_MVFv3$1; }; declare function unzipAndParseMVFv2(data: Uint8Array, inputVersion?: string): Promise; //#endregion //#region src/hydrate-map-data.d.ts type THydrateMapDataBundle = { type: 'binary'; options?: { version?: '2.0.0' | '3.0.0'; /** * @deprecated This option is no longer needed and will be removed in a future release. * Enterprise mode is now automatically detected from the MVF data. */ enterprise?: boolean; }; languagePacks?: { language: { code: string; name: string; }; localePack: Uint8Array; }[]; main: Uint8Array; } | { type: 'json'; options?: { version?: '2.0.0' | '3.0.0'; /** * @deprecated This option is no longer needed and will be removed in a future release. * Enterprise mode is now automatically detected from the MVF data. */ enterprise?: boolean; mvf3?: MVFv2_STANDARD_MVFv3; }; languagePacks?: { language: { code: string; name: string; }; localePack: ParsedMVFLocalePack; }[]; main: ParsedMVF; }; /** * Load a MapData instance from a backup bundle (zip file or parsed MVF). * * This function automatically detects whether the data is from a Maker or CMS/Enterprise * source by checking for the presence of the `enterprise` field in the MVF data. Use * `mapData.isEnterpriseMode` after loading to determine which data types to access. * * @param backup - The map data bundle (binary zip, parsed JSON, or raw MVF) * @param userOptions - Optional configuration including credentials for outdoor view and analytics * @returns A Promise that resolves to a MapData instance * * @example Loading from a zip file with auto-detection * ```ts * const response = await fetch('map-bundle.zip'); * const buffer = new Uint8Array(await response.arrayBuffer()); * const mapData = await hydrateMapData({ type: 'binary', main: buffer }); * * // Check which data source was detected * const locations = mapData.isEnterpriseMode * ? mapData.getByType('enterprise-location') * : mapData.getByType('location-profile'); * ``` */ declare const hydrateMapData: (backup: THydrateMapDataBundle | ParsedMVF, userOptions?: TGetMapDataOptions) => Promise; //#endregion //#region ../packages/common/async.d.ts /** * A debounced function with a cancel method */ interface DebouncedFunction void> { (...args: Parameters): void; /** * Cancels any pending debounced execution */ cancel: () => void; } //#endregion //#region src/analytics/customer.d.ts /** * Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail. * If a set context is not in this list, it will default to the first VALID_CONTEXTS value. */ declare const VALID_CONTEXTS: readonly ["websdk", "web", "webv2", "kiosk", "kiosk-v2", "mobile", "iossdk", "androidsdk", "reactnativesdk", "gen7", "bespoke", "reactsdk", "minimap"]; type ValidContext = (typeof VALID_CONTEXTS)[number]; declare const FOUND_POSITION = "found-position"; declare const FOUND_FLOOR = "found-floor"; type BlueDotEvents = typeof FOUND_FLOOR | typeof FOUND_POSITION; declare class AnalyticsInternal { #private; private oneTimeEventsSent; constructor(); init(options: AnalyticsUpdateOptions): void; /** * Reset state and options */ reset(): void; private updateStateWithOptions; updateState(update: UpdateStateParam): void; private handleStateUpdate; get authReady(): boolean; getState(): AnalyticState; private getContext; private getSessionId; private getDeviceId; private sendAnalyticEvent; capture(eventName: T$1, query: CaptureEventsPayloadMap[T$1]): Promise | Promise; capture)>(target: T$1, query: T$1 extends keyof CaptureEventsPayloadMap ? CaptureEventsPayloadMap[T$1] : Record): Promise | Promise; /** * @internal */ sendGetMapDataEvent(payload: { parseDuration: number; downloadDuration: number; viewId?: string; }): void | Promise | Promise; sendChangeLanguageEvent(payload: { fromLanguage: string; }): void | Promise | Promise; sendWatchPositionDenied(): void | Promise | Promise; /** * @internal */ sendMapViewLoadedEvent({ firstRenderDuration, dimension, collisionWorkerDisabled, outdoorsWorkerDisabled }: { firstRenderDuration: number; dimension: { height: number; width: number; }; /** * True when setWorkerURL is set, but the worker file cannot be found, so we disable the collision worker and use sync collision detection instead */ collisionWorkerDisabled: boolean; /** * True when setWorkerURL is set, but the worker file cannot be found, so we disable the outdoor context */ outdoorsWorkerDisabled: boolean; }): void | Promise | Promise; /** * @internal */ sendGetDirectionsEvent: DebouncedFunction<(start: string, end: string, accessible?: boolean) => void | Promise | Promise>; sendBlueDotEvents(event: BlueDotEvents): void | Promise | Promise; } type UpdateStateParam = Partial>; /** * Maps reserved analytics event names to their payload structures. * * This type is used by the {@link Analytics.capture} method to provide type safety for reserved analytics events. * When using these event names, the payload must match the corresponding structure. */ type CaptureEventsPayloadMap = { /** * Event fired when a location is selected. */ '$select-location': { /** * The ID of the selected location. */ id: string; }; /** * Event fired when a category is selected. */ '$select-category': { /** * The ID of the selected category. */ id: string; }; /** * Event fired when query suggestions are generated. */ '$query-suggest': { /** * The search query string. */ query: string; /** * Optional array of suggestion strings. */ suggestions?: string[]; }; /** * Event fired when a search query is executed. */ '$query-search': { /** * The search query string. */ query: string; /** * Optional array of result IDs (hits). */ hits?: string[]; }; }; declare class Analytics { #private; /** * @internal */ constructor(internalAnalytics: AnalyticsInternal); /** * Captures an analytic event with a custom target and query payload. * * @param target - The event name or target can be one of: `$select-location`, `$select-category`, `$query-suggest`, `$query-search` * @param query - The payload associated with the event. * @returns A promise that resolves to the server response or void. */ capture: typeof AnalyticsInternal.prototype.capture; /** * Updates the analytics state with the provided parameters. * @param update - The state parameters to update. */ updateState: (update: TAnalyticsUpdateState) => void; /** * Returns the current analytics state. * @internal * @returns the current analytics state */ getState(): { version: string; /** The platform string to be included in analytics. */ platformString: string; /** The base URI for the analytics endpoint. */ baseUri: string; /** The base URI with mapId appended. */ analyticsBaseUrl: string; /** Flag to disable authentication. */ noAuth: boolean; /** Flag to enable geolocation mode. */ geolocationMode: boolean; /** The context in which the analytics are being used. */ context: ValidContext; /** The last known user position. */ userPosition?: AnalyticsUserPosition; /** The ID of the map to be used for analytics. */ mapId?: string; /** Flag to enable logging of events. */ logEvents: boolean; /** Flag to enable sending of events. */ sendEvents: boolean; /** * The externalId parameter attaches a custom tracking identifier to every analytics event sent during the session. * This is useful for correlating Mappedin analytics data with an external system — for example, linking a map session * back to a specific marketing campaign, CRM record, or third-party tracking platform. */ externalId?: string; /** The API key for authentication. */ key?: string; /** The API secret for authentication. */ secret?: string; /** The access token for authentication. */ accessToken?: string; }; private getContext; private getSessionId; private getDeviceId; } type AnalyticsUserPosition = { bluedotTimestamp: number; latitude: number; longitude: number; floorLevel?: number; accuracy?: number; }; type AnalyticsAuth = { /** The API key for authentication. */ key?: string; /** The API secret for authentication. */ secret?: string; /** The access token for authentication. */ accessToken?: string; }; type AnalyticState = { version: string; /** The platform string to be included in analytics. */ platformString: string; /** The base URI for the analytics endpoint. */ baseUri: string; /** The base URI with mapId appended. */ analyticsBaseUrl: string; /** Flag to disable authentication. */ noAuth: boolean; /** Flag to enable geolocation mode. */ geolocationMode: boolean; /** @internal The device ID to be used for analytics. */ deviceId: string; /** @internal The session ID to be used for analytics. */ sessionId: string; /** The context in which the analytics are being used. */ context: ValidContext; /** The last known user position. */ userPosition?: AnalyticsUserPosition; /** The ID of the map to be used for analytics. */ mapId?: string; /** Flag to enable logging of events. */ logEvents: boolean; /** Flag to enable sending of events. */ sendEvents: boolean; /** * The externalId parameter attaches a custom tracking identifier to every analytics event sent during the session. * This is useful for correlating Mappedin analytics data with an external system — for example, linking a map session * back to a specific marketing campaign, CRM record, or third-party tracking platform. */ externalId?: string; } & AnalyticsAuth; type AnalyticsOptions = Partial>; type AnalyticsUpdateOptions = Omit & ((Required> & Partial>) | (Required> & Partial>)); /** * Options for updating the current state of analytics. * @interface */ type TAnalyticsUpdateState = Pick, 'logEvents' | 'sendEvents' | 'baseUri' | 'accessToken' | 'externalId'>; //#endregion //#region ../packages/shave-text/shave-text.d.ts type TDrawFn = (ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, x: number, y: number) => void; //#endregion //#region ../packages/quad-tree/src/types.d.ts type Point2D = [number, number, T$1?]; //#endregion //#region ../packages/quad-tree/src/rectangle.d.ts /** * Class representing a rectangle. * * @template T - The type of user data stored in the rectangle. */ declare class Rectangle { /** * The x-coordinate of the rectangle. */ readonly x: number; /** * The y-coordinate of the rectangle. */ readonly y: number; /** * The width of the rectangle. */ readonly w: number; /** * The height of the rectangle. */ readonly h: number; /** * The user data associated with this rectangle. */ userData: T$1; /** * Creates an instance of Rectangle. * * @param {number} x - The x-coordinate of the rectangle. * @param {number} y - The y-coordinate of the rectangle. * @param {number} w - The width of the rectangle. * @param {number} h - The height of the rectangle. * @param {T} [userData] - The user data associated with this rectangle. */ constructor(x: number, y: number, w: number, h: number, userData?: T$1); /** * Checks if this rectangle contains the given rectangle entirely. * * @param {Rectangle} rectangle - The rectangle to check. * @returns {boolean} Whether this rectangle contains the given rectangle. */ contains(rectangle: Rectangle): boolean; /** * Checks if this rectangle intersects with the given rectangle. * * @param {Rectangle} rectangle - The rectangle to check. * @returns {boolean} Whether this rectangle intersects with the given rectangle. */ intersects(rectangle: Rectangle): boolean; /** * Checks if this rectangle intersects with the given point. * * @param {Point2D} point - The point to check. * @returns {boolean} Whether this rectangle intersects with the given point. */ intersectsPoint(point: Point2D): boolean; /** * Draws the rectangle on the given canvas context. * * @param {CanvasRenderingContext2D} context - The canvas context to draw on. */ draw(context: CanvasRenderingContext2D): void; } //#endregion //#region ../packages/quad-tree/src/quad-tree.d.ts /** * This is a QuadTree implementation that can be used to store rectangles * and query them based on their position. * * @template T - The type of data stored in the QuadTree. */ declare class QuadTree { /** * The top-left quadrant of this QuadTree. */ topLeft: QuadTree; /** * The top-right quadrant of this QuadTree. */ topRight: QuadTree; /** * The bottom-left quadrant of this QuadTree. */ bottomLeft: QuadTree; /** * The bottom-right quadrant of this QuadTree. */ bottomRight: QuadTree; /** * Whether this QuadTree has been subdivided. */ divided: boolean; /** * The boundary of this QuadTree. */ readonly boundary: Rectangle; /** * The maximum number of objects a QuadTree node can hold before subdividing. */ capacity: number; /** * The list of objects in this QuadTree node. */ readonly objects: Rectangle[]; /** * The parent QuadTree node. */ readonly parent?: QuadTree; /** * Creates an instance of QuadTree. * * @param {Rectangle} boundary - The boundary of this QuadTree. * @param {QuadTree} [parent] - The parent QuadTree node. */ constructor(boundary: Rectangle, parent?: QuadTree); /** * Gets the total number of objects in this QuadTree. * * @returns {number} The total number of objects. */ getSize(): number; /** * Subdivides this QuadTree into four quadrants. */ subdivide(): void; /** * Queries this QuadTree for rectangles that intersect the given rectangle. * * @param {Rectangle} rectangle - The rectangle to query. * @returns {Rectangle[]} The list of intersecting rectangles. */ queryRect(rectangle: Rectangle): Rectangle[]; /** * Queries this QuadTree for rectangles that contain the given point. * * @param {Point2D} point - The point to query. * @returns {Rectangle[]} The list of rectangles containing the point. */ queryPoint(point: Point2D): Rectangle[]; /** * Inserts a rectangle into this QuadTree. * * @param {Rectangle} rectangle - The rectangle to insert. * @returns {boolean} Whether the rectangle was successfully inserted. */ insert(rectangle: Rectangle): boolean; /** * Draws all objects in this QuadTree on the given canvas context. * * @param {CanvasRenderingContext2D} context - The canvas context to draw on. */ drawObjects(context: CanvasRenderingContext2D): void; /** * Draws the boundary of this QuadTree on the given canvas context. * * @param {CanvasRenderingContext2D} context - The canvas context to draw on. */ draw(context: CanvasRenderingContext2D): void; } //#endregion //#region ../2d-labels-markers/lib/esm/systems/collision/types.d.ts type WatermarkPosition$1 = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right'; type TSerializedColliderResponse = [number, 1 | 0, Rectangle?]; type PackedBBox = [x: number, y: number, w: number, h: number, index: number]; type PackedBBoxes = PackedBBox[]; type PackedCollider = [bboxes: PackedBBoxes, enabled: 0 | 1, alwaysVisible: 0 | 1, x: number, y: number, shouldCollideWithScreenEdges?: 0 | 1, onlyExposeStrategyIndex?: number]; type PackedMessage = [colliders: PackedCollider[], devicePixelRatio: number, totalHeight: number, totalWidth: number, watermarkWidth: number, watermarkHeight: number, watermarkPosition: WatermarkPosition$1]; type PackedJsonMessage = { x: number; y: number; enabled: boolean; rank: number; bboxes: PackedBBoxes; shouldCollideWithScreenEdges: boolean; lockedToStrategyIndex: number; }; //#endregion //#region ../2d-labels-markers/lib/esm/constants.d.ts /** * The visibility of the label's pin. */ declare enum PINVISIBILITY { /** The pin is visible. */ ACTIVE = 1, /** The pin is visible, but the icon is not visible. */ INACTIVE = 0.5, /** The pin is not visible. */ HIDDEN = 0, } declare enum TEXTALIGN { LEFT = "left", CENTER = "center", RIGHT = "right", } //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts type _JSONSchema = boolean | JSONSchema; type JSONSchema = { [k: string]: unknown; $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#"; $id?: string; $anchor?: string; $ref?: string; $dynamicRef?: string; $dynamicAnchor?: string; $vocabulary?: Record; $comment?: string; $defs?: Record; type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer"; additionalItems?: _JSONSchema; unevaluatedItems?: _JSONSchema; prefixItems?: _JSONSchema[]; items?: _JSONSchema | _JSONSchema[]; contains?: _JSONSchema; additionalProperties?: _JSONSchema; unevaluatedProperties?: _JSONSchema; properties?: Record; patternProperties?: Record; dependentSchemas?: Record; propertyNames?: _JSONSchema; if?: _JSONSchema; then?: _JSONSchema; else?: _JSONSchema; allOf?: JSONSchema[]; anyOf?: JSONSchema[]; oneOf?: JSONSchema[]; not?: _JSONSchema; multipleOf?: number; maximum?: number; exclusiveMaximum?: number | boolean; minimum?: number; exclusiveMinimum?: number | boolean; maxLength?: number; minLength?: number; pattern?: string; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxContains?: number; minContains?: number; maxProperties?: number; minProperties?: number; required?: string[]; dependentRequired?: Record; enum?: Array; const?: string | number | boolean | null; id?: string; title?: string; description?: string; default?: unknown; deprecated?: boolean; readOnly?: boolean; writeOnly?: boolean; nullable?: boolean; examples?: unknown[]; format?: string; contentMediaType?: string; contentEncoding?: string; contentSchema?: JSONSchema; _prefault?: unknown; }; type BaseSchema = JSONSchema; //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts /** The Standard interface. */ interface StandardTypedV1 { /** The Standard properties. */ readonly "~standard": StandardTypedV1.Props; } declare namespace StandardTypedV1 { /** The Standard properties interface. */ interface Props { /** The version number of the standard. */ readonly version: 1; /** The vendor name of the schema library. */ readonly vendor: string; /** Inferred types associated with the schema. */ readonly types?: Types | undefined; } /** The Standard types interface. */ interface Types { /** The input type of the schema. */ readonly input: Input; /** The output type of the schema. */ readonly output: Output; } /** Infers the input type of a Standard. */ type InferInput = NonNullable["input"]; /** Infers the output type of a Standard. */ type InferOutput = NonNullable["output"]; } /** The Standard Schema interface. */ interface StandardSchemaV1 { /** The Standard Schema properties. */ readonly "~standard": StandardSchemaV1.Props; } declare namespace StandardSchemaV1 { /** The Standard Schema properties interface. */ interface Props extends StandardTypedV1.Props { /** Validates unknown input values. */ readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result | Promise>; } /** The result interface of the validate function. */ type Result = SuccessResult | FailureResult; /** The result interface if validation succeeds. */ interface SuccessResult { /** The typed output value. */ readonly value: Output; /** The absence of issues indicates success. */ readonly issues?: undefined; } interface Options { /** Implicit support for additional vendor-specific parameters, if needed. */ readonly libraryOptions?: Record | undefined; } /** The result interface if validation fails. */ interface FailureResult { /** The issues of failed validation. */ readonly issues: ReadonlyArray; } /** The issue interface of the failure output. */ interface Issue { /** The error message of the issue. */ readonly message: string; /** The path of the issue, if any. */ readonly path?: ReadonlyArray | undefined; } /** The path segment interface of the issue. */ interface PathSegment { /** The key representing a path segment. */ readonly key: PropertyKey; } /** The Standard types interface. */ interface Types extends StandardTypedV1.Types {} /** Infers the input type of a Standard. */ type InferInput = StandardTypedV1.InferInput; /** Infers the output type of a Standard. */ type InferOutput = StandardTypedV1.InferOutput; } /** The Standard JSON Schema interface. */ interface StandardJSONSchemaV1 { /** The Standard JSON Schema properties. */ readonly "~standard": StandardJSONSchemaV1.Props; } declare namespace StandardJSONSchemaV1 { /** The Standard JSON Schema properties interface. */ interface Props extends StandardTypedV1.Props { /** Methods for generating the input/output JSON Schema. */ readonly jsonSchema: Converter; } /** The Standard JSON Schema converter interface. */ interface Converter { /** Converts the input type to JSON Schema. May throw if conversion is not supported. */ readonly input: (options: StandardJSONSchemaV1.Options) => Record; /** Converts the output type to JSON Schema. May throw if conversion is not supported. */ readonly output: (options: StandardJSONSchemaV1.Options) => Record; } /** The target version of the generated JSON Schema. * * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. * * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`. * * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target. */ type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string); /** The options for the input/output methods. */ interface Options { /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */ readonly target: Target; /** Implicit support for additional vendor-specific parameters, if needed. */ readonly libraryOptions?: Record | undefined; } /** The Standard types interface. */ interface Types extends StandardTypedV1.Types {} /** Infers the input type of a Standard. */ type InferInput = StandardTypedV1.InferInput; /** Infers the output type of a Standard. */ type InferOutput = StandardTypedV1.InferOutput; } interface StandardSchemaWithJSONProps extends StandardSchemaV1.Props, StandardJSONSchemaV1.Props {} //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts declare const $output: unique symbol; type $output = typeof $output; declare const $input: unique symbol; type $input = typeof $input; type $replace = Meta extends $output ? output : Meta extends $input ? input : Meta extends (infer M)[] ? $replace[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace }) => $replace : Meta extends object ? { [K in keyof Meta]: $replace } : Meta; type MetadataType = object | undefined; declare class $ZodRegistry { _meta: Meta; _schema: Schema; _map: WeakMap>; _idmap: Map; add(schema: S, ..._meta: undefined extends Meta ? [$replace?] : [$replace]): this; clear(): this; remove(schema: Schema): this; get(schema: S): $replace | undefined; has(schema: Schema): boolean; } interface JSONSchemaMeta { id?: string | undefined; title?: string | undefined; description?: string | undefined; deprecated?: boolean | undefined; [k: string]: unknown; } interface GlobalMeta extends JSONSchemaMeta {} //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts type Processor = (schema: T$1, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void; interface JSONSchemaGeneratorParams { processors: Record; /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def. * @default globalRegistry */ metadata?: $ZodRegistry>; /** The JSON Schema version to target. * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12 * - `"draft-07"` — JSON Schema Draft 7 * - `"draft-04"` — JSON Schema Draft 4 * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */ target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined; /** How to handle unrepresentable types. * - `"throw"` — Default. Unrepresentable types throw an error * - `"any"` — Unrepresentable types become `{}` */ unrepresentable?: "throw" | "any"; /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */ override?: (ctx: { zodSchema: $ZodTypes; jsonSchema: BaseSchema; path: (string | number)[]; }) => void; /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc. * - `"output"` — Default. Convert the output schema. * - `"input"` — Convert the input schema. */ io?: "input" | "output"; cycles?: "ref" | "throw"; reused?: "ref" | "inline"; external?: { registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record; } | undefined; } /** * Parameters for the toJSONSchema function. */ type ToJSONSchemaParams = Omit; interface ProcessParams { schemaPath: $ZodType[]; path: (string | number)[]; } interface Seen { /** JSON Schema result for this Zod schema */ schema: BaseSchema; /** A cached version of the schema that doesn't get overwritten during ref resolution */ def?: BaseSchema; defId?: string | undefined; /** Number of times this schema was encountered during traversal */ count: number; /** Cycle path */ cycle?: (string | number)[] | undefined; isParent?: boolean | undefined; /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */ ref?: $ZodType | null; /** JSON Schema property path for this schema */ path?: (string | number)[] | undefined; } interface ToJSONSchemaContext { processors: Record; metadataRegistry: $ZodRegistry>; target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string); unrepresentable: "throw" | "any"; override: (ctx: { zodSchema: $ZodType; jsonSchema: BaseSchema; path: (string | number)[]; }) => void; io: "input" | "output"; counter: number; seen: Map<$ZodType, Seen>; cycles: "ref" | "throw"; reused: "ref" | "inline"; external?: { registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record; } | undefined; } type ZodStandardSchemaWithJSON$1 = StandardSchemaWithJSONProps, output>; interface ZodStandardJSONSchemaPayload extends BaseSchema { "~standard": ZodStandardSchemaWithJSON$1; } //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {}); type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {}); type IsAny$1 = 0 extends 1 & T$1 ? true : false; type Omit$1 = Pick>; type MakePartial = Omit$1 & InexactPartial>; type NoUndefined = T$1 extends undefined ? never : T$1; type LoosePartial = InexactPartial & { [k: string]: unknown; }; type Mask$1 = { [K in Keys]?: true }; type InexactPartial = { [P in keyof T$1]?: T$1[P] | undefined }; type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string; } | Date | Error | Generator | Promise | RegExp; type MakeReadonly = T$1 extends Map ? ReadonlyMap : T$1 extends Set ? ReadonlySet : T$1 extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T$1 extends Array ? ReadonlyArray : T$1 extends BuiltIn ? T$1 : Readonly; type SomeObject = Record; type Identity = T$1; type Flatten = Identity<{ [k in keyof T$1]: T$1[k] }>; type Prettify = { [K in keyof T$1]: T$1[K] } & {}; type Extend = Flatten; type TupleItems = ReadonlyArray; type AnyFunc = (...args: any[]) => any; type MaybeAsync = T$1 | Promise; type EnumValue = string | number; type EnumLike = Readonly>; type ToEnum = Flatten<{ [k in T$1]: k }>; type Literal = string | number | bigint | boolean | null | undefined; type Primitive$1 = string | number | symbol | bigint | boolean | null | undefined; type HasLength = { length: number; }; type Numeric = number | bigint | Date; type PropValues = Record>; type PrimitiveSet = Set; type EmptyToNever = keyof T$1 extends never ? never : T$1; declare abstract class Class { constructor(..._args: any[]); } //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts declare const version: { readonly major: 4; readonly minor: 3; readonly patch: number; }; //#endregion //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts interface ParseContext { /** Customize error messages. */ readonly error?: $ZodErrorMap; /** Include the `input` field in issue objects. Default `false`. */ readonly reportInput?: boolean; /** Skip eval-based fast path. Default `false`. */ readonly jitless?: boolean; } /** @internal */ interface ParseContextInternal extends ParseContext { readonly async?: boolean | undefined; readonly direction?: "forward" | "backward"; readonly skipChecks?: boolean; } interface ParsePayload { value: T$1; issues: $ZodRawIssue[]; /** A may to mark a whole payload as aborted. Used in codecs/pipes. */ aborted?: boolean; } type CheckFn = (input: ParsePayload) => MaybeAsync; interface $ZodTypeDef { type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom"; error?: $ZodErrorMap | undefined; checks?: $ZodCheck[]; } interface _$ZodTypeInternals { /** The `@zod/core` version of this schema */ version: typeof version; /** Schema definition. */ def: $ZodTypeDef; /** @internal Randomly generated ID for this schema. */ /** @internal List of deferred initializers. */ deferred: AnyFunc[] | undefined; /** @internal Parses input and runs all checks (refinements). */ run(payload: ParsePayload, ctx: ParseContextInternal): MaybeAsync; /** @internal Parses input, doesn't run checks. */ parse(payload: ParsePayload, ctx: ParseContextInternal): MaybeAsync; /** @internal Stores identifiers for the set of traits implemented by this schema. */ traits: Set; /** @internal Indicates that a schema output type should be considered optional inside objects. * @default Required */ /** @internal */ optin?: "optional" | undefined; /** @internal */ optout?: "optional" | undefined; /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record(). * * Defined on: enum, const, literal, null, undefined * Passthrough: optional, nullable, branded, default, catch, pipe * Todo: unions? */ values?: PrimitiveSet | undefined; /** Default value bubbled up from */ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */ propValues?: PropValues | undefined; /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */ pattern: RegExp | undefined; /** @internal The constructor function of this schema. */ constr: new (def: any) => $ZodType; /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */ bag: Record; /** @internal The set of issues this schema might throw during type checking. */ isst: $ZodIssueBase; /** @internal Subject to change, not a public API. */ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined; /** An optional method used to override `toJSONSchema` logic. */ toJSONSchema?: () => unknown; /** @internal The parent of this schema. Only set during certain clone operations. */ parent?: $ZodType | undefined; } /** @internal */ interface $ZodTypeInternals extends _$ZodTypeInternals { /** @internal The inferred output type */ output: O; /** @internal The inferred input type */ input: I; } type $ZodStandardSchema = StandardSchemaV1.Props, output>; type SomeType = { _zod: _$ZodTypeInternals; }; interface $ZodType = $ZodTypeInternals> { _zod: Internals; "~standard": $ZodStandardSchema; } interface _$ZodType extends $ZodType {} declare const $ZodType: $constructor<$ZodType>; interface $ZodStringDef extends $ZodTypeDef { type: "string"; coerce?: boolean; checks?: $ZodCheck[]; } interface $ZodStringInternals extends $ZodTypeInternals { def: $ZodStringDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; patterns: Set; format: string; contentEncoding: string; }>; } interface $ZodString extends _$ZodType<$ZodStringInternals> {} declare const $ZodString: $constructor<$ZodString>; interface $ZodStringFormatDef extends $ZodStringDef, $ZodCheckStringFormatDef {} interface $ZodStringFormatInternals extends $ZodStringInternals, $ZodCheckStringFormatInternals { def: $ZodStringFormatDef; } interface $ZodStringFormat extends $ZodType { _zod: $ZodStringFormatInternals; } declare const $ZodStringFormat: $constructor<$ZodStringFormat>; interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {} interface $ZodGUID extends $ZodType { _zod: $ZodGUIDInternals; } declare const $ZodGUID: $constructor<$ZodGUID>; interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> { version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8"; } interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> { def: $ZodUUIDDef; } interface $ZodUUID extends $ZodType { _zod: $ZodUUIDInternals; } declare const $ZodUUID: $constructor<$ZodUUID>; interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {} interface $ZodEmail extends $ZodType { _zod: $ZodEmailInternals; } declare const $ZodEmail: $constructor<$ZodEmail>; interface $ZodURLDef extends $ZodStringFormatDef<"url"> { hostname?: RegExp | undefined; protocol?: RegExp | undefined; normalize?: boolean | undefined; } interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> { def: $ZodURLDef; } interface $ZodURL extends $ZodType { _zod: $ZodURLInternals; } declare const $ZodURL: $constructor<$ZodURL>; interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {} interface $ZodEmoji extends $ZodType { _zod: $ZodEmojiInternals; } declare const $ZodEmoji: $constructor<$ZodEmoji>; interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {} interface $ZodNanoID extends $ZodType { _zod: $ZodNanoIDInternals; } declare const $ZodNanoID: $constructor<$ZodNanoID>; interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {} interface $ZodCUID extends $ZodType { _zod: $ZodCUIDInternals; } declare const $ZodCUID: $constructor<$ZodCUID>; interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {} interface $ZodCUID2 extends $ZodType { _zod: $ZodCUID2Internals; } declare const $ZodCUID2: $constructor<$ZodCUID2>; interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {} interface $ZodULID extends $ZodType { _zod: $ZodULIDInternals; } declare const $ZodULID: $constructor<$ZodULID>; interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {} interface $ZodXID extends $ZodType { _zod: $ZodXIDInternals; } declare const $ZodXID: $constructor<$ZodXID>; interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {} interface $ZodKSUID extends $ZodType { _zod: $ZodKSUIDInternals; } declare const $ZodKSUID: $constructor<$ZodKSUID>; interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> { precision: number | null; offset: boolean; local: boolean; } interface $ZodISODateTimeInternals extends $ZodStringFormatInternals { def: $ZodISODateTimeDef; } interface $ZodISODateTime extends $ZodType { _zod: $ZodISODateTimeInternals; } declare const $ZodISODateTime: $constructor<$ZodISODateTime>; interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {} interface $ZodISODate extends $ZodType { _zod: $ZodISODateInternals; } declare const $ZodISODate: $constructor<$ZodISODate>; interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> { precision?: number | null; } interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> { def: $ZodISOTimeDef; } interface $ZodISOTime extends $ZodType { _zod: $ZodISOTimeInternals; } declare const $ZodISOTime: $constructor<$ZodISOTime>; interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {} interface $ZodISODuration extends $ZodType { _zod: $ZodISODurationInternals; } declare const $ZodISODuration: $constructor<$ZodISODuration>; interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> { version?: "v4"; } interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> { def: $ZodIPv4Def; } interface $ZodIPv4 extends $ZodType { _zod: $ZodIPv4Internals; } declare const $ZodIPv4: $constructor<$ZodIPv4>; interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> { version?: "v6"; } interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> { def: $ZodIPv6Def; } interface $ZodIPv6 extends $ZodType { _zod: $ZodIPv6Internals; } declare const $ZodIPv6: $constructor<$ZodIPv6>; interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> { version?: "v4"; } interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> { def: $ZodCIDRv4Def; } interface $ZodCIDRv4 extends $ZodType { _zod: $ZodCIDRv4Internals; } declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>; interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> { version?: "v6"; } interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> { def: $ZodCIDRv6Def; } interface $ZodCIDRv6 extends $ZodType { _zod: $ZodCIDRv6Internals; } declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>; interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {} interface $ZodBase64 extends $ZodType { _zod: $ZodBase64Internals; } declare const $ZodBase64: $constructor<$ZodBase64>; interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {} interface $ZodBase64URL extends $ZodType { _zod: $ZodBase64URLInternals; } declare const $ZodBase64URL: $constructor<$ZodBase64URL>; interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {} interface $ZodE164 extends $ZodType { _zod: $ZodE164Internals; } declare const $ZodE164: $constructor<$ZodE164>; interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> { alg?: JWTAlgorithm | undefined; } interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> { def: $ZodJWTDef; } interface $ZodJWT extends $ZodType { _zod: $ZodJWTInternals; } declare const $ZodJWT: $constructor<$ZodJWT>; interface $ZodNumberDef extends $ZodTypeDef { type: "number"; coerce?: boolean; } interface $ZodNumberInternals extends $ZodTypeInternals { def: $ZodNumberDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; exclusiveMinimum: number; exclusiveMaximum: number; format: string; pattern: RegExp; }>; } interface $ZodNumber extends $ZodType { _zod: $ZodNumberInternals; } declare const $ZodNumber: $constructor<$ZodNumber>; interface $ZodBooleanDef extends $ZodTypeDef { type: "boolean"; coerce?: boolean; checks?: $ZodCheck[]; } interface $ZodBooleanInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodBooleanDef; isst: $ZodIssueInvalidType; } interface $ZodBoolean extends $ZodType { _zod: $ZodBooleanInternals; } declare const $ZodBoolean: $constructor<$ZodBoolean>; interface $ZodBigIntDef extends $ZodTypeDef { type: "bigint"; coerce?: boolean; } interface $ZodBigIntInternals extends $ZodTypeInternals { pattern: RegExp; /** @internal Internal API, use with caution */ def: $ZodBigIntDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: bigint; maximum: bigint; format: string; }>; } interface $ZodBigInt extends $ZodType { _zod: $ZodBigIntInternals; } declare const $ZodBigInt: $constructor<$ZodBigInt>; interface $ZodSymbolDef extends $ZodTypeDef { type: "symbol"; } interface $ZodSymbolInternals extends $ZodTypeInternals { def: $ZodSymbolDef; isst: $ZodIssueInvalidType; } interface $ZodSymbol extends $ZodType { _zod: $ZodSymbolInternals; } declare const $ZodSymbol: $constructor<$ZodSymbol>; interface $ZodUndefinedDef extends $ZodTypeDef { type: "undefined"; } interface $ZodUndefinedInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodUndefinedDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodUndefined extends $ZodType { _zod: $ZodUndefinedInternals; } declare const $ZodUndefined: $constructor<$ZodUndefined>; interface $ZodNullDef extends $ZodTypeDef { type: "null"; } interface $ZodNullInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodNullDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodNull extends $ZodType { _zod: $ZodNullInternals; } declare const $ZodNull: $constructor<$ZodNull>; interface $ZodAnyDef extends $ZodTypeDef { type: "any"; } interface $ZodAnyInternals extends $ZodTypeInternals { def: $ZodAnyDef; isst: never; } interface $ZodAny extends $ZodType { _zod: $ZodAnyInternals; } declare const $ZodAny: $constructor<$ZodAny>; interface $ZodUnknownDef extends $ZodTypeDef { type: "unknown"; } interface $ZodUnknownInternals extends $ZodTypeInternals { def: $ZodUnknownDef; isst: never; } interface $ZodUnknown extends $ZodType { _zod: $ZodUnknownInternals; } declare const $ZodUnknown: $constructor<$ZodUnknown>; interface $ZodNeverDef extends $ZodTypeDef { type: "never"; } interface $ZodNeverInternals extends $ZodTypeInternals { def: $ZodNeverDef; isst: $ZodIssueInvalidType; } interface $ZodNever extends $ZodType { _zod: $ZodNeverInternals; } declare const $ZodNever: $constructor<$ZodNever>; interface $ZodVoidDef extends $ZodTypeDef { type: "void"; } interface $ZodVoidInternals extends $ZodTypeInternals { def: $ZodVoidDef; isst: $ZodIssueInvalidType; } interface $ZodVoid extends $ZodType { _zod: $ZodVoidInternals; } declare const $ZodVoid: $constructor<$ZodVoid>; interface $ZodDateDef extends $ZodTypeDef { type: "date"; coerce?: boolean; } interface $ZodDateInternals extends $ZodTypeInternals { def: $ZodDateDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: Date; maximum: Date; format: string; }>; } interface $ZodDate extends $ZodType { _zod: $ZodDateInternals; } declare const $ZodDate: $constructor<$ZodDate>; interface $ZodArrayDef extends $ZodTypeDef { type: "array"; element: T$1; } interface $ZodArrayInternals extends _$ZodTypeInternals { def: $ZodArrayDef; isst: $ZodIssueInvalidType; output: output[]; input: input[]; } interface $ZodArray extends $ZodType> {} declare const $ZodArray: $constructor<$ZodArray>; type OptionalOutSchema = { _zod: { optout: "optional"; }; }; type OptionalInSchema = { _zod: { optin: "optional"; }; }; type $InferObjectOutput> = string extends keyof T$1 ? IsAny$1 extends true ? Record : Record> : keyof (T$1 & Extra) extends never ? Record : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>; type $InferObjectInput> = string extends keyof T$1 ? IsAny$1 extends true ? Record : Record> : keyof (T$1 & Extra) extends never ? Record : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>; type $ZodObjectConfig = { out: Record; in: Record; }; type $loose = { out: Record; in: Record; }; type $strict = { out: {}; in: {}; }; type $strip = { out: {}; in: {}; }; type $catchall = { out: { [k: string]: output; }; in: { [k: string]: input; }; }; type $ZodShape = Readonly<{ [k: string]: $ZodType; }>; interface $ZodObjectDef extends $ZodTypeDef { type: "object"; shape: Shape$1; catchall?: $ZodType | undefined; } interface $ZodObjectInternals< /** @ts-ignore Cast variance */ out Shape$1 extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals { def: $ZodObjectDef; config: Config; isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys; propValues: PropValues; output: $InferObjectOutput; input: $InferObjectInput; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $ZodLooseShape = Record; interface $ZodObject< /** @ts-ignore Cast variance */ out Shape$1 extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params$1 extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType> {} declare const $ZodObject: $constructor<$ZodObject>; type $InferUnionOutput = T$1 extends any ? output : never; type $InferUnionInput = T$1 extends any ? input : never; interface $ZodUnionDef extends $ZodTypeDef { type: "union"; options: Options; inclusive?: boolean; } type IsOptionalIn = T$1 extends OptionalInSchema ? true : false; type IsOptionalOut = T$1 extends OptionalOutSchema ? true : false; interface $ZodUnionInternals extends _$ZodTypeInternals { def: $ZodUnionDef; isst: $ZodIssueInvalidUnion; pattern: T$1[number]["_zod"]["pattern"]; values: T$1[number]["_zod"]["values"]; output: $InferUnionOutput; input: $InferUnionInput; optin: IsOptionalIn extends false ? "optional" | undefined : "optional"; optout: IsOptionalOut extends false ? "optional" | undefined : "optional"; } interface $ZodUnion extends $ZodType> { _zod: $ZodUnionInternals; } declare const $ZodUnion: $constructor<$ZodUnion>; interface $ZodDiscriminatedUnionDef extends $ZodUnionDef { discriminator: Disc; unionFallback?: boolean; } interface $ZodDiscriminatedUnionInternals extends $ZodUnionInternals { def: $ZodDiscriminatedUnionDef; propValues: PropValues; } interface $ZodDiscriminatedUnion extends $ZodType { _zod: $ZodDiscriminatedUnionInternals; } declare const $ZodDiscriminatedUnion: $constructor<$ZodDiscriminatedUnion>; interface $ZodIntersectionDef extends $ZodTypeDef { type: "intersection"; left: Left; right: Right; } interface $ZodIntersectionInternals extends _$ZodTypeInternals { def: $ZodIntersectionDef; isst: never; optin: A["_zod"]["optin"] | B["_zod"]["optin"]; optout: A["_zod"]["optout"] | B["_zod"]["optout"]; output: output & output; input: input & input; } interface $ZodIntersection extends $ZodType { _zod: $ZodIntersectionInternals; } declare const $ZodIntersection: $constructor<$ZodIntersection>; interface $ZodTupleDef extends $ZodTypeDef { type: "tuple"; items: T$1; rest: Rest$1; } type $InferTupleInputType = [...TupleInputTypeWithOptionals, ...(Rest$1 extends SomeType ? input[] : [])]; type TupleInputTypeNoOptionals = { [k in keyof T$1]: input }; type TupleInputTypeWithOptionals = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals, input?] : TupleInputTypeNoOptionals : []; type $InferTupleOutputType = [...TupleOutputTypeWithOptionals, ...(Rest$1 extends SomeType ? output[] : [])]; type TupleOutputTypeNoOptionals = { [k in keyof T$1]: output }; type TupleOutputTypeWithOptionals = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals, output?] : TupleOutputTypeNoOptionals : []; interface $ZodTupleInternals extends _$ZodTypeInternals { def: $ZodTupleDef; isst: $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall; output: $InferTupleOutputType; input: $InferTupleInputType; } interface $ZodTuple extends $ZodType { _zod: $ZodTupleInternals; } declare const $ZodTuple: $constructor<$ZodTuple>; type $ZodRecordKey = $ZodType; interface $ZodRecordDef extends $ZodTypeDef { type: "record"; keyType: Key$1; valueType: Value; /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */ mode?: "strict" | "loose"; } type $InferZodRecordOutput = Key$1 extends $partial ? Partial, output>> : Record, output>; type $InferZodRecordInput = Key$1 extends $partial ? Partial & PropertyKey, input>> : Record & PropertyKey, input>; interface $ZodRecordInternals extends $ZodTypeInternals<$InferZodRecordOutput, $InferZodRecordInput> { def: $ZodRecordDef; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey>; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $partial = { "~~partial": true; }; interface $ZodRecord extends $ZodType { _zod: $ZodRecordInternals; } declare const $ZodRecord: $constructor<$ZodRecord>; interface $ZodMapDef extends $ZodTypeDef { type: "map"; keyType: Key$1; valueType: Value; } interface $ZodMapInternals extends $ZodTypeInternals, output>, Map, input>> { def: $ZodMapDef; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodMap extends $ZodType { _zod: $ZodMapInternals; } declare const $ZodMap: $constructor<$ZodMap>; interface $ZodSetDef extends $ZodTypeDef { type: "set"; valueType: T$1; } interface $ZodSetInternals extends $ZodTypeInternals>, Set>> { def: $ZodSetDef; isst: $ZodIssueInvalidType; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodSet extends $ZodType { _zod: $ZodSetInternals; } declare const $ZodSet: $constructor<$ZodSet>; type $InferEnumOutput = T$1[keyof T$1] & {}; type $InferEnumInput = T$1[keyof T$1] & {}; interface $ZodEnumDef extends $ZodTypeDef { type: "enum"; entries: T$1; } interface $ZodEnumInternals< /** @ts-ignore Cast variance */ out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput, $InferEnumInput> { def: $ZodEnumDef; /** @deprecated Internal API, use with caution (not deprecated) */ values: PrimitiveSet; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; isst: $ZodIssueInvalidValue; } interface $ZodEnum extends $ZodType { _zod: $ZodEnumInternals; } declare const $ZodEnum: $constructor<$ZodEnum>; interface $ZodLiteralDef extends $ZodTypeDef { type: "literal"; values: T$1[]; } interface $ZodLiteralInternals extends $ZodTypeInternals { def: $ZodLiteralDef; values: Set; pattern: RegExp; isst: $ZodIssueInvalidValue; } interface $ZodLiteral extends $ZodType { _zod: $ZodLiteralInternals; } declare const $ZodLiteral: $constructor<$ZodLiteral>; type _File = typeof globalThis extends { File: infer F extends new (...args: any[]) => any; } ? InstanceType : {}; /** Do not reference this directly. */ interface File extends _File { readonly type: string; readonly size: number; } interface $ZodFileDef extends $ZodTypeDef { type: "file"; } interface $ZodFileInternals extends $ZodTypeInternals { def: $ZodFileDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; mime: MimeTypes[]; }>; } interface $ZodFile extends $ZodType { _zod: $ZodFileInternals; } declare const $ZodFile: $constructor<$ZodFile>; interface $ZodTransformDef extends $ZodTypeDef { type: "transform"; transform: (input: unknown, payload: ParsePayload) => MaybeAsync; } interface $ZodTransformInternals extends $ZodTypeInternals { def: $ZodTransformDef; isst: never; } interface $ZodTransform extends $ZodType { _zod: $ZodTransformInternals; } declare const $ZodTransform: $constructor<$ZodTransform>; interface $ZodOptionalDef extends $ZodTypeDef { type: "optional"; innerType: T$1; } interface $ZodOptionalInternals extends $ZodTypeInternals | undefined, input | undefined> { def: $ZodOptionalDef; optin: "optional"; optout: "optional"; isst: never; values: T$1["_zod"]["values"]; pattern: T$1["_zod"]["pattern"]; } interface $ZodOptional extends $ZodType { _zod: $ZodOptionalInternals; } declare const $ZodOptional: $constructor<$ZodOptional>; interface $ZodExactOptionalDef extends $ZodOptionalDef {} interface $ZodExactOptionalInternals extends $ZodOptionalInternals { def: $ZodExactOptionalDef; output: output; input: input; } interface $ZodExactOptional extends $ZodType { _zod: $ZodExactOptionalInternals; } declare const $ZodExactOptional: $constructor<$ZodExactOptional>; interface $ZodNullableDef extends $ZodTypeDef { type: "nullable"; innerType: T$1; } interface $ZodNullableInternals extends $ZodTypeInternals | null, input | null> { def: $ZodNullableDef; optin: T$1["_zod"]["optin"]; optout: T$1["_zod"]["optout"]; isst: never; values: T$1["_zod"]["values"]; pattern: T$1["_zod"]["pattern"]; } interface $ZodNullable extends $ZodType { _zod: $ZodNullableInternals; } declare const $ZodNullable: $constructor<$ZodNullable>; interface $ZodDefaultDef extends $ZodTypeDef { type: "default"; innerType: T$1; /** The default value. May be a getter. */ defaultValue: NoUndefined>; } interface $ZodDefaultInternals extends $ZodTypeInternals>, input | undefined> { def: $ZodDefaultDef; optin: "optional"; optout?: "optional" | undefined; isst: never; values: T$1["_zod"]["values"]; } interface $ZodDefault extends $ZodType { _zod: $ZodDefaultInternals; } declare const $ZodDefault: $constructor<$ZodDefault>; interface $ZodPrefaultDef extends $ZodTypeDef { type: "prefault"; innerType: T$1; /** The default value. May be a getter. */ defaultValue: input; } interface $ZodPrefaultInternals extends $ZodTypeInternals>, input | undefined> { def: $ZodPrefaultDef; optin: "optional"; optout?: "optional" | undefined; isst: never; values: T$1["_zod"]["values"]; } interface $ZodPrefault extends $ZodType { _zod: $ZodPrefaultInternals; } declare const $ZodPrefault: $constructor<$ZodPrefault>; interface $ZodNonOptionalDef extends $ZodTypeDef { type: "nonoptional"; innerType: T$1; } interface $ZodNonOptionalInternals extends $ZodTypeInternals>, NoUndefined>> { def: $ZodNonOptionalDef; isst: $ZodIssueInvalidType; values: T$1["_zod"]["values"]; optin: "optional" | undefined; optout: "optional" | undefined; } interface $ZodNonOptional extends $ZodType { _zod: $ZodNonOptionalInternals; } declare const $ZodNonOptional: $constructor<$ZodNonOptional>; interface $ZodSuccessDef extends $ZodTypeDef { type: "success"; innerType: T$1; } interface $ZodSuccessInternals extends $ZodTypeInternals> { def: $ZodSuccessDef; isst: never; optin: T$1["_zod"]["optin"]; optout: "optional" | undefined; } interface $ZodSuccess extends $ZodType { _zod: $ZodSuccessInternals; } declare const $ZodSuccess: $constructor<$ZodSuccess>; interface $ZodCatchCtx extends ParsePayload { /** @deprecated Use `ctx.issues` */ error: { issues: $ZodIssue[]; }; /** @deprecated Use `ctx.value` */ input: unknown; } interface $ZodCatchDef extends $ZodTypeDef { type: "catch"; innerType: T$1; catchValue: (ctx: $ZodCatchCtx) => unknown; } interface $ZodCatchInternals extends $ZodTypeInternals, input> { def: $ZodCatchDef; optin: T$1["_zod"]["optin"]; optout: T$1["_zod"]["optout"]; isst: never; values: T$1["_zod"]["values"]; } interface $ZodCatch extends $ZodType { _zod: $ZodCatchInternals; } declare const $ZodCatch: $constructor<$ZodCatch>; interface $ZodNaNDef extends $ZodTypeDef { type: "nan"; } interface $ZodNaNInternals extends $ZodTypeInternals { def: $ZodNaNDef; isst: $ZodIssueInvalidType; } interface $ZodNaN extends $ZodType { _zod: $ZodNaNInternals; } declare const $ZodNaN: $constructor<$ZodNaN>; interface $ZodPipeDef extends $ZodTypeDef { type: "pipe"; in: A; out: B; /** Only defined inside $ZodCodec instances. */ transform?: (value: output, payload: ParsePayload>) => MaybeAsync>; /** Only defined inside $ZodCodec instances. */ reverseTransform?: (value: input, payload: ParsePayload>) => MaybeAsync>; } interface $ZodPipeInternals extends $ZodTypeInternals, input> { def: $ZodPipeDef; isst: never; values: A["_zod"]["values"]; optin: A["_zod"]["optin"]; optout: B["_zod"]["optout"]; propValues: A["_zod"]["propValues"]; } interface $ZodPipe extends $ZodType { _zod: $ZodPipeInternals; } declare const $ZodPipe: $constructor<$ZodPipe>; interface $ZodReadonlyDef extends $ZodTypeDef { type: "readonly"; innerType: T$1; } interface $ZodReadonlyInternals extends $ZodTypeInternals>, MakeReadonly>> { def: $ZodReadonlyDef; optin: T$1["_zod"]["optin"]; optout: T$1["_zod"]["optout"]; isst: never; propValues: T$1["_zod"]["propValues"]; values: T$1["_zod"]["values"]; } interface $ZodReadonly extends $ZodType { _zod: $ZodReadonlyInternals; } declare const $ZodReadonly: $constructor<$ZodReadonly>; interface $ZodTemplateLiteralDef extends $ZodTypeDef { type: "template_literal"; parts: $ZodTemplateLiteralPart[]; format?: string | undefined; } interface $ZodTemplateLiteralInternals