import type { Attachment, OGAttachment } from 'open-chat-js'; import type { DefaultStreamChatGenerics } from '../../types/types'; type AttachmentLoadingState = 'uploading' | 'finished' | 'failed'; export type FileUpload = { file: { name: string; lastModified?: number; lastModifiedDate?: Date; size?: number; type?: string; uri?: string; }; id: string; state: AttachmentLoadingState; thumb_url?: string; url?: string; }; export type ImageUpload = { file: { name: string; height?: number; lastModified?: number; lastModifiedDate?: Date; size?: number; type?: string; uri?: string; width?: number; }; id: string; state: AttachmentLoadingState; previewUri?: string; url?: string; } & Pick, 'og_scrape_url' | 'title' | 'title_link' | 'author_name' | 'text'>; export declare enum LinkPreviewState { /** Link preview has been dismissed using MessageInputContextValue.dismissLinkPreview **/ DISMISSED = "dismissed", /** Link preview could not be loaded, the enrichment request has failed. **/ FAILED = "failed", /** Link preview has been successfully loaded. **/ LOADED = "loaded", /** The enrichment query is in progress for a given link. **/ LOADING = "loading", /** The link is scheduled for enrichment. **/ QUEUED = "queued" } export type LinkURL = string; export type LinkPreview = OGAttachment & { state: LinkPreviewState; }; export declare enum SetLinkPreviewMode { UPSERT = 0, SET = 1, REMOVE = 2 } export type LinkPreviewMap = Map; export {}; //# sourceMappingURL=types.d.ts.map