import { z } from "zod"; //#region src/block_registry/block_pack_spec.d.ts /** Block pack from local folder, to be used during block development. Old layout. * @deprecated don't use */ declare const BlockPackDevV1: z.ZodObject<{ type: z.ZodLiteral<"dev-v1">; folder: z.ZodString; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dev-v1"; folder: string; mtime?: string | undefined; }, { type: "dev-v1"; folder: string; mtime?: string | undefined; }>; /** @deprecated don't use */ type BlockPackDevV1 = z.infer; /** Block pack from local folder, to be used during block development. New layout. */ declare const BlockPackDevV2: z.ZodObject<{ type: z.ZodLiteral<"dev-v2">; folder: z.ZodString; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dev-v2"; folder: string; mtime?: string | undefined; }, { type: "dev-v2"; folder: string; mtime?: string | undefined; }>; type BlockPackDevV2 = z.infer; /** Block pack consumed from an npm-installed package's `block-pack/` folder * (manifest + ui.tgz). Emitted by the facade's engine-generated BlockPointer. * Self-describes its pack location (`packUrl`, `rootUrl`) rather than carrying * `dev-v2`'s `folder`. */ declare const BlockPackFromPackV2: z.ZodObject<{ type: z.ZodLiteral<"from-pack-v2">; /** `file:` URL of the block-pack directory itself — it directly contains * `manifest.json`, `ui.tgz`, `model.json`, `published.json`, … This is a URL, * NOT a filesystem path: the facade emits a lossless OS-agnostic locator and * stays dependency-free; each consumer converts at its own edge with * `fileURLToPath` (in Node). Consumers MUST read artifacts from here and MUST * NOT reconstruct `/block-pack`: the pointer travels with the block at * its build-time SDK version, and a consumer at a different version cannot * know a layout the structurer may relocate. `type` versions the within-pack * format — if that changes, the discriminator bumps (`from-pack-v3`). */ packUrl: z.ZodString; /** `file:` URL of the facade/package root — the parent that holds the pack * directory plus root-level siblings (e.g. `package.json`). A URL, not a path * (convert with `fileURLToPath` at the edge). Always emitted when built from a * block; optional because a future bare block-pack may ship with no root. */ rootUrl: z.ZodOptional; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "from-pack-v2"; packUrl: string; mtime?: string | undefined; rootUrl?: string | undefined; }, { type: "from-pack-v2"; packUrl: string; mtime?: string | undefined; rootUrl?: string | undefined; }>; type BlockPackFromPackV2 = z.infer; /** * Block pack from registry with version 2 layout, to be loaded directly * from the client. * @deprecated don't use * */ declare const BlockPackFromRegistryV1: z.ZodObject<{ type: z.ZodLiteral<"from-registry-v1">; registryUrl: z.ZodString; id: z.ZodObject<{ organization: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strict", z.ZodTypeAny, { organization: string; name: string; version: string; }, { organization: string; name: string; version: string; }>; }, "strip", z.ZodTypeAny, { type: "from-registry-v1"; registryUrl: string; id: { organization: string; name: string; version: string; }; }, { type: "from-registry-v1"; registryUrl: string; id: { organization: string; name: string; version: string; }; }>; /** @deprecated don't use */ type BlockPackFromRegistryV1 = z.infer; /** Block pack from registry with version 2 layout, to be loaded directly * from the client. */ declare const BlockPackFromRegistryV2: z.ZodObject<{ type: z.ZodLiteral<"from-registry-v2">; registryUrl: z.ZodString; id: z.ZodObject<{ organization: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strict", z.ZodTypeAny, { organization: string; name: string; version: string; }, { organization: string; name: string; version: string; }>; channel: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "from-registry-v2"; registryUrl: string; id: { organization: string; name: string; version: string; }; channel?: string | undefined; }, { type: "from-registry-v2"; registryUrl: string; id: { organization: string; name: string; version: string; }; channel?: string | undefined; }>; type BlockPackFromRegistryV2 = z.infer; /** Information about block origin, can be used to instantiate new blocks */ declare const BlockPackSpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"dev-v1">; folder: z.ZodString; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dev-v1"; folder: string; mtime?: string | undefined; }, { type: "dev-v1"; folder: string; mtime?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"dev-v2">; folder: z.ZodString; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "dev-v2"; folder: string; mtime?: string | undefined; }, { type: "dev-v2"; folder: string; mtime?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"from-pack-v2">; /** `file:` URL of the block-pack directory itself — it directly contains * `manifest.json`, `ui.tgz`, `model.json`, `published.json`, … This is a URL, * NOT a filesystem path: the facade emits a lossless OS-agnostic locator and * stays dependency-free; each consumer converts at its own edge with * `fileURLToPath` (in Node). Consumers MUST read artifacts from here and MUST * NOT reconstruct `/block-pack`: the pointer travels with the block at * its build-time SDK version, and a consumer at a different version cannot * know a layout the structurer may relocate. `type` versions the within-pack * format — if that changes, the discriminator bumps (`from-pack-v3`). */ packUrl: z.ZodString; /** `file:` URL of the facade/package root — the parent that holds the pack * directory plus root-level siblings (e.g. `package.json`). A URL, not a path * (convert with `fileURLToPath` at the edge). Always emitted when built from a * block; optional because a future bare block-pack may ship with no root. */ rootUrl: z.ZodOptional; mtime: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "from-pack-v2"; packUrl: string; mtime?: string | undefined; rootUrl?: string | undefined; }, { type: "from-pack-v2"; packUrl: string; mtime?: string | undefined; rootUrl?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"from-registry-v1">; registryUrl: z.ZodString; id: z.ZodObject<{ organization: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strict", z.ZodTypeAny, { organization: string; name: string; version: string; }, { organization: string; name: string; version: string; }>; }, "strip", z.ZodTypeAny, { type: "from-registry-v1"; registryUrl: string; id: { organization: string; name: string; version: string; }; }, { type: "from-registry-v1"; registryUrl: string; id: { organization: string; name: string; version: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"from-registry-v2">; registryUrl: z.ZodString; id: z.ZodObject<{ organization: z.ZodString; name: z.ZodString; version: z.ZodString; }, "strict", z.ZodTypeAny, { organization: string; name: string; version: string; }, { organization: string; name: string; version: string; }>; channel: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "from-registry-v2"; registryUrl: string; id: { organization: string; name: string; version: string; }; channel?: string | undefined; }, { type: "from-registry-v2"; registryUrl: string; id: { organization: string; name: string; version: string; }; channel?: string | undefined; }>]>; type BlockPackSpec = z.infer; //#endregion export { BlockPackDevV1, BlockPackDevV2, BlockPackFromPackV2, BlockPackFromRegistryV1, BlockPackFromRegistryV2, BlockPackSpec }; //# sourceMappingURL=block_pack_spec.d.ts.map