import type { CratestackRpcCodec } from "@cratestack/ts-types"; /** * Performs the one-time WASM module instantiation and resolves to a plain * object satisfying {@link CratestackRpcCodec}. Every `encode`/`decode` * call on the returned object is synchronous — the async cost is paid * once here, never per call, so this composes with the existing * (synchronous) `CratestackRpcCodec` contract without changing its shape. * * Safe to call more than once: later calls resolve once the same * in-flight (or already-completed) instantiation settles, they don't * re-instantiate the module. * * @example * ```ts * const codec = await createCborCodec(); * const bytes = codec.encode({ hello: "world" }); * const value = codec.decode(bytes); * ``` */ export declare function createCborCodec(): Promise; //# sourceMappingURL=index.d.ts.map