import { ComputedRef, Ref } from 'vue'; import { DynamicContentProps } from '../../../types/canvas'; import { FileStatusEnum, CanvasRetrieve, FileRetrieve } from '../../../../../../types/openapi'; export interface DynamicContentSection { section: CanvasRetrieve; index: number; } export interface DynamicContentFile { id: string; file_id: string; type: 'file'; component_id: string; index: number; file: FileRetrieve; section: undefined; } export declare function cleanupDynamicContent(): void; export declare function useDynamicContent(hasConfig?: Ref | ComputedRef): { resolvedSections: Ref<{ section: { readonly id: string; name: string; content?: Record | undefined; context?: any; indicators?: (Record | null) | undefined; theme?: (Record | null) | undefined; is_draft?: boolean | undefined; is_template?: boolean | undefined; is_section?: boolean | undefined; is_block?: boolean | undefined; is_editable?: boolean | undefined; is_default?: boolean | undefined; metadata?: any; tags?: Array | undefined; start_at?: string | null | undefined; expires_at?: string | null | undefined; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; thumbnail_url?: string | null | undefined; instance_id: string; readonly template: { readonly id: string; name: string; readonly tags?: Array | undefined; }; readonly sections: { readonly id: string; name: string; content: Record; theme?: (Record | null) | undefined; metadata?: Record | undefined; is_draft: boolean; }[]; readonly section_ids?: Array | undefined; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; account?: { id?: string | undefined; name?: string | undefined; } | null | undefined; readonly events: { readonly id: string; start_at: string; subject: string; }[]; folder_id?: string | null | undefined; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }; index: number; }[], DynamicContentSection[] | { section: { readonly id: string; name: string; content?: Record | undefined; context?: any; indicators?: (Record | null) | undefined; theme?: (Record | null) | undefined; is_draft?: boolean | undefined; is_template?: boolean | undefined; is_section?: boolean | undefined; is_block?: boolean | undefined; is_editable?: boolean | undefined; is_default?: boolean | undefined; metadata?: any; tags?: Array | undefined; start_at?: string | null | undefined; expires_at?: string | null | undefined; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; thumbnail_url?: string | null | undefined; instance_id: string; readonly template: { readonly id: string; name: string; readonly tags?: Array | undefined; }; readonly sections: { readonly id: string; name: string; content: Record; theme?: (Record | null) | undefined; metadata?: Record | undefined; is_draft: boolean; }[]; readonly section_ids?: Array | undefined; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; account?: { id?: string | undefined; name?: string | undefined; } | null | undefined; readonly events: { readonly id: string; start_at: string; subject: string; }[]; folder_id?: string | null | undefined; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }; index: number; }[]>; resolvedFiles: Ref<{ id: string; file_id: string; type: "file"; component_id: string; index: number; file: { readonly id: string; readonly global_id: string; name?: string | undefined; readonly type: import('../../../../../../types/openapi').FileTypeEnum; readonly size: number | null; readonly status: FileStatusEnum; readonly version: { readonly id: string; readonly comment: string; readonly created_at: string; }; readonly content_type: import('../../../../../../types/openapi').FileContentTypeEnum; readonly content_extension: string | null; readonly content_length: number | null; readonly content_url: string | null; readonly content_thumbnails: Array; readonly original_extension: string | null; readonly original_url: string | null; readonly thumbnail_url: string | null; download_type?: import('../../../../../../types/openapi').DownloadTypeEnum | undefined; readonly zip_size: number | null; readonly zip_url: string | null; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; readonly role: import('../../../../../../types/openapi').CollaborationRoleEnum; permissions?: { can_download?: boolean | undefined; can_share?: boolean | undefined; can_be_divided?: boolean | undefined; readonly can_print: boolean; } | undefined; readonly pspdfkit_server_url: string | null; readonly pspdfkit_document_id: string | null; readonly pspdfkit_auth_payload: Record | null; metadata?: Record | undefined; app_metadata?: Record | undefined; tags?: Array | undefined; readonly published_at: string | null; expires_at?: string | null | undefined; available_at?: string | null | undefined; readonly instance_id: string; folder_id?: string | undefined; readonly folder: { readonly id: string; name: string; }; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }; section: undefined; }[], DynamicContentFile[] | { id: string; file_id: string; type: "file"; component_id: string; index: number; file: { readonly id: string; readonly global_id: string; name?: string | undefined; readonly type: import('../../../../../../types/openapi').FileTypeEnum; readonly size: number | null; readonly status: FileStatusEnum; readonly version: { readonly id: string; readonly comment: string; readonly created_at: string; }; readonly content_type: import('../../../../../../types/openapi').FileContentTypeEnum; readonly content_extension: string | null; readonly content_length: number | null; readonly content_url: string | null; readonly content_thumbnails: Array; readonly original_extension: string | null; readonly original_url: string | null; readonly thumbnail_url: string | null; download_type?: import('../../../../../../types/openapi').DownloadTypeEnum | undefined; readonly zip_size: number | null; readonly zip_url: string | null; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; readonly role: import('../../../../../../types/openapi').CollaborationRoleEnum; permissions?: { can_download?: boolean | undefined; can_share?: boolean | undefined; can_be_divided?: boolean | undefined; readonly can_print: boolean; } | undefined; readonly pspdfkit_server_url: string | null; readonly pspdfkit_document_id: string | null; readonly pspdfkit_auth_payload: Record | null; metadata?: Record | undefined; app_metadata?: Record | undefined; tags?: Array | undefined; readonly published_at: string | null; expires_at?: string | null | undefined; available_at?: string | null | undefined; readonly instance_id: string; folder_id?: string | undefined; readonly folder: { readonly id: string; name: string; }; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }; section: undefined; }[]>; isLoading: Ref; error: Ref; sectionContentCache: Ref | undefined; context?: any; indicators?: (Record | null) | undefined; theme?: (Record | null) | undefined; is_draft?: boolean | undefined; is_template?: boolean | undefined; is_section?: boolean | undefined; is_block?: boolean | undefined; is_editable?: boolean | undefined; is_default?: boolean | undefined; metadata?: any; tags?: Array | undefined; start_at?: string | null | undefined; expires_at?: string | null | undefined; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; thumbnail_url?: string | null | undefined; instance_id: string; readonly template: { readonly id: string; name: string; readonly tags?: Array | undefined; }; readonly sections: { readonly id: string; name: string; content: Record; theme?: (Record | null) | undefined; metadata?: Record | undefined; is_draft: boolean; }[]; readonly section_ids?: Array | undefined; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; account?: { id?: string | undefined; name?: string | undefined; } | null | undefined; readonly events: { readonly id: string; start_at: string; subject: string; }[]; folder_id?: string | null | undefined; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }> & Omit, keyof Map>, Map | (Map | undefined; context?: any; indicators?: (Record | null) | undefined; theme?: (Record | null) | undefined; is_draft?: boolean | undefined; is_template?: boolean | undefined; is_section?: boolean | undefined; is_block?: boolean | undefined; is_editable?: boolean | undefined; is_default?: boolean | undefined; metadata?: any; tags?: Array | undefined; start_at?: string | null | undefined; expires_at?: string | null | undefined; access_type?: import('../../../../../../types/openapi').AccessTypeEnum | undefined; thumbnail_url?: string | null | undefined; instance_id: string; readonly template: { readonly id: string; name: string; readonly tags?: Array | undefined; }; readonly sections: { readonly id: string; name: string; content: Record; theme?: (Record | null) | undefined; metadata?: Record | undefined; is_draft: boolean; }[]; readonly section_ids?: Array | undefined; readonly shared_link: { readonly url: string; short_url?: string | null | undefined; }; account?: { id?: string | undefined; name?: string | undefined; } | null | undefined; readonly events: { readonly id: string; start_at: string; subject: string; }[]; folder_id?: string | null | undefined; readonly owned_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly created_at: string; readonly created_by: { readonly id: number; readonly name: string; email?: string | undefined; }; readonly modified_at: string; readonly modified_by: { readonly id: number; readonly name: string; email?: string | undefined; }; }> & Omit, keyof Map>)>; hasSectionCached: (sectionId: string) => boolean; getCachedSection: (sectionId: string) => CanvasRetrieve | undefined; fetchDynamicContent: (config: DynamicContentProps, options?: { silent?: boolean; }) => Promise; fetchSectionContent: (sectionId: string) => Promise; };