import { type Accessor } from 'solid-js'; import type { Attachment, AttachmentAdapter } from '../attachment/attachment-adapter.js'; export type ComposerDraft = { draft: string; attachments: Attachment[]; quote: string | null; }; export type ComposerContextValue = { attachments: Accessor; attachmentAdapter: Accessor; addAttachment: (file: File) => Promise; hasAttachment: (id: string) => boolean; replaceAttachment: (id: string, file: File) => Promise; removeAttachment: (id: string) => Promise; sendingAttachments: Accessor; snapshotDraft: () => ComposerDraft; restoreDraft: (draft: ComposerDraft) => void; clearDraft: () => void; quote: Accessor; setQuote: (value: string | null) => void; editing: Accessor; setEditing: (value: boolean) => void; dictating: Accessor; setDictating: (value: boolean) => void; }; export declare const ComposerProvider: import("solid-js").ContextProviderComponent; export declare function useComposerContext(): ComposerContextValue; //# sourceMappingURL=composer-context.d.ts.map