import { CompiledQuery } from '../../types/types.js'; import { AbstractPowerSyncDatabase } from '../AbstractPowerSyncDatabase.js'; import { WatchCompatibleQuery } from './WatchedQuery.js'; /** * Options for {@link GetAllQuery}. */ export type GetAllQueryOptions = { sql: string; parameters?: ReadonlyArray; /** * Optional mapper function to convert raw rows into the desired RowType. * @example * ```javascript * (rawRow) => ({ * id: rawRow.id, * created_at: new Date(rawRow.created_at), * }) * ``` */ mapper?: (rawRow: Record) => RowType; }; /** * Performs a {@link AbstractPowerSyncDatabase.getAll} operation for a watched query. */ export declare class GetAllQuery implements WatchCompatibleQuery { protected options: GetAllQueryOptions; constructor(options: GetAllQueryOptions); compile(): CompiledQuery; execute(options: { db: AbstractPowerSyncDatabase; }): Promise; }