export interface LegalDocument {
    title: string;
    content: string;
    sourceFile: string;
    lastSynced: string | null;
    githubSha: string | null;
    sections: Array<{
        id: string;
        title: string;
        level: number;
    }>;
    docType: string;
    meta: {
        sectionsCount: number;
        contentLength: number;
        lastSyncedAgo: string;
    };
}
export interface UseLegalDocsReturn {
    data: LegalDocument | null;
    isLoading: boolean;
    error: string | null;
    refetch: () => void;
}
export interface UseLegalDocsOptions {
    /** Optional pre-fetched payload from server (SSR / RSC). When set,
     *  the hook skips the initial client fetch. */
    initialData?: LegalDocument | null;
    /** Full GET endpoint URL. Default `/api/legal/<docType>`. */
    apiEndpoint?: string;
}
/**
 * Hook to fetch a legal document.
 * @param docType — short identifier for the document (drives the
 *   default endpoint path AND the error-log prefix). Common values:
 *   `'privacy'` (SECURITY.md), `'terms'` (LICENSE). Embedders may use
 *   any string — the hook treats it as opaque.
 */
export declare function useLegalDocs(docType: string, options?: UseLegalDocsOptions): UseLegalDocsReturn;
//# sourceMappingURL=use-legal-docs.d.ts.map