export type RestoredComponent = {
    componentName: string;
    written: string[];
};
/**
 * Strictly unwrap the `{typescript: {...}}` envelope from a dump-metadata
 * payload. TS-side code only reads its own envelope key.
 */
export declare const unwrapTypescriptEnvelope: (parsed: unknown) => Record<string, unknown>;
/**
 * Reconstruct a component directory from a parsed envelope. The envelope
 * carries `{typescript: {name, files: [{path, content}], ...}}`.
 *
 * `files[].path` is relative to `<componentsDir>` (e.g. `BoxCard/index.ts`).
 * Each entry is written verbatim, preserving directory structure. An
 * existing component dir is wiped first.
 *
 * `label` is used in error messages (file path, URL, or remote ref).
 */
export declare const restoreComponentFromEnvelope: (envelope: unknown, label: string) => RestoredComponent;
/**
 * Parse a raw dump-metadata JSON string and reconstruct the component.
 * Wrapper around `restoreComponentFromEnvelope`.
 */
export declare const restoreComponentFromEnvelopeText: (raw: string, label: string) => RestoredComponent;
//# sourceMappingURL=dumpEnvelope.d.ts.map