import * as v from "valibot"; import { type CustomBlockManifest } from "./manifest.js"; export declare const customBlockReadyErrorCodeSchema: v.StringSchema; export type CustomBlockReadyErrorCode = "manifest_unavailable" | "manifest_invalid" | (string & {}); export declare const customBlockReadyErrorSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; }, undefined>; export type CustomBlockReadyError = v.InferOutput; export type ManifestLoadResult = { manifest: CustomBlockManifest | null; error?: undefined; } | { manifest: null; error: CustomBlockReadyError; }; /** * Attempts to load a `custom_blocks.json` manifest co-located with the bundle. * A missing manifest means the block has no declared data requirements. * Other failures return a structured error so the host can reject the manifest. * The SDK validates the manifest locally for author feedback; the host still * validates the ready message as the iframe trust boundary. */ export declare function loadManifest(): Promise; //# sourceMappingURL=loadManifest.d.ts.map