import type { GenerationRecord, GenerationRecordFilter, GenerationRecordStore } from "@pixerate/editor/generation"; export interface SvelteGenerationRecords { readonly records: GenerationRecord[]; readonly loading: boolean; readonly error: unknown; refresh(): Promise; /** Stops following the store. */ destroy(): void; } /** * Reactive records of a `GenerationRecordStore` (Svelte 5 runes), newest * first, reloaded whenever the store changes. Pass a getter for a reactive * filter: `createGenerationRecords(store, () => ({ model }))`. Call * `destroy()` (or create it inside a component, where it is cleaned up with * the component's effects) to stop listening. */ export declare function createGenerationRecords(store: GenerationRecordStore, filter?: () => GenerationRecordFilter | undefined): SvelteGenerationRecords;