/** * Debounced typeahead hook for brief suggestions. * * Calls `client.content.brief()` as the user types, with a 500ms debounce. * Results are cached per (prefix + context) key to avoid redundant API calls. * * Closes #65. */ import type { LaminaClient, ContentConcept } from '@uselamina/sdk'; interface TypeaheadContext { modality?: string; brandProfileId?: string; documentType?: string; documentTitle?: string; fieldName?: string; documentExcerpt?: string; } export interface TypeaheadResult { /** Current suggestions. */ suggestions: ContentConcept[]; /** Whether a fetch is in flight. */ loading: boolean; /** Clear all suggestions. */ clear: () => void; } /** * Debounced typeahead hook. * * @param client - The LaminaClient instance. * @param brief - Current value of the brief textarea. * @param context - Document/field context for relevance. * @param enabled - Pass `false` to disable (e.g. while generating). */ export declare function useTypeahead(client: LaminaClient, brief: string, context: TypeaheadContext, enabled: boolean): TypeaheadResult; export {};