import { Attachment, ChatState } from './types'; export type CopilotActions = { send(text: string, attachments: Attachment[]): void; stop(): void; reset(): void; /** Runs the assistant again on the conversation as it is (after an error). */ retry(): void; /** Resolves once the proposal is applied or marked stale. */ apply(turnId: string, proposalId: string): Promise; undo(turnId: string, proposalId: string): void; discard(turnId: string, proposalId: string): void; requestFix(turnId: string, proposalId: string): void; }; export type CopilotContextValue = CopilotActions & { state: ChatState; revision: number; }; export declare const StateContext: import('react').Context; export declare const ActionsContext: import('react').Context; export declare const RevisionContext: import('react').Context; export declare const useCopilotState: () => ChatState; export declare const useCopilotActions: () => CopilotActions; export declare const useCopilotRevision: () => number; export declare function useCopilot(): CopilotContextValue;