Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseNoteGenerationReturn

    Return type for the useNoteGeneration hook.

    interface UseNoteGenerationReturn {
        content: string | null;
        error: Error | null;
        fileId: string | null;
        generateNote: (config: NoteGenerationConfig) => Promise<void>;
        loading: boolean;
        reset: () => void;
        saved: boolean;
    }
    Index

    Properties

    content: string | null

    The generated note content, or null if not yet generated

    error: Error | null

    Error from the last generation attempt, or null

    fileId: string | null

    The file ID of the saved note, or null if not yet saved

    generateNote: (config: NoteGenerationConfig) => Promise<void>

    Trigger note generation with the given config

    loading: boolean

    Whether note generation is in progress

    reset: () => void

    Reset all state back to initial values

    saved: boolean

    Whether the note was successfully saved