import type { CodeMetadata, LegacyCodeMetadata } from './types.js'; /** * Encodes structured component metadata into a stable, base64url-safe string * suitable for embedding in a KiCad "Code" property. * * The encoded string contains only [A-Za-z0-9_-] characters plus the "typecad:v1:" prefix, * which means it survives KiCad's string handling without any quoting issues. */ export declare function encodeCodeMetadata(metadata: CodeMetadata): string; /** * Decodes a KiCad Code property value into structured metadata. * Tries the new format first, then falls back to the legacy single-quote format. * * Returns null if the value is empty or cannot be parsed in any format. */ export declare function decodeCodeMetadata(rawValue: string | null | undefined): CodeMetadata | LegacyCodeMetadata | null; //# sourceMappingURL=codec.d.ts.map