import type { components } from "../lib/openapi.js"; import { type LocalFileEntry, type SkippedFile } from "./local-files.js"; import { type Configuration, type Resource, type ResourceGroup } from "./types.js"; type Snippet = components["schemas"]["Snippet"]; export declare function deserialize(content: string): { snippet: Partial; isValid: boolean; error?: string; }; export declare function serialize(snippet: Partial): string; /** * Order-independent representation for change detection. Includes the * identifier (derived locally from the filename) so renaming a snippet file * is detected and pushed like any other change. */ export declare function canonicalizeForDiff(snippet: Partial): string; export declare const REMOTE_SNIPPETS_RESOURCE: Resource; export type LocalSnippetEntry = LocalFileEntry>; export declare function readLocalSnippets(configuration: Configuration): Promise<{ entries: LocalSnippetEntry[]; skipped: SkippedFile[]; }>; export declare const LOCAL_SNIPPETS_RESOURCE: Resource; export declare const SNIPPETS_RESOURCE: ResourceGroup; export {};