import type { ProjectContext } from '../../project'; import { Task } from '../../task'; declare const READ_OPERATIONS: readonly ["list_paths", "list_collections", "list_documents", "read_collection", "get_document", "get_many_documents", "query_collection", "query_collection_group", "count_documents", "aggregate_collection", "get_collection_schema", "list_indexes", "distinct_values"]; type ReadOperations = (typeof READ_OPERATIONS)[number]; export declare class UnknownFirestoreOperationError extends Error { readonly operation: string; readonly _tag: "UnknownFirestoreOperationError"; constructor(operation: string); } export declare const FIRESTORE_READ: "firestore_read"; export declare const firestoreReadDefinition: { inputSchema: { [x: string]: unknown; type: "object"; properties?: { [x: string]: object; } | undefined; required?: string[] | undefined; }; name: string; description?: string | undefined; outputSchema?: { [x: string]: unknown; type: "object"; properties?: { [x: string]: object; } | undefined; required?: string[] | undefined; } | undefined; annotations?: { title?: string | undefined; readOnlyHint?: boolean | undefined; destructiveHint?: boolean | undefined; idempotentHint?: boolean | undefined; openWorldHint?: boolean | undefined; } | undefined; execution?: { taskSupport?: "optional" | "required" | "forbidden" | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "light" | "dark" | undefined; }[] | undefined; title?: string | undefined; }; export declare const dispatchFirestoreRead: (ctx: ProjectContext, operation: ReadOperations | (string & {}), args: unknown) => Task<{ collection: string; result: FirebaseFirestore.AggregateSpecData<{ [k: string]: FirebaseFirestore.AggregateField; }>; } | { fields: string | string[]; totalDocsFetched: number; values: { value: (string | null) | Record; count: number; collectionCount?: number; collections?: string[]; }[]; byCollection: Record; count: number; }[]>; } | { fields: string | string[]; totalDocsFetched: number; values: { value: (string | null) | Record; count: number; collectionCount?: number; collections?: string[]; }[]; byCollection?: undefined; } | { collection: string; count: number; } | { collection: string; totalSampled: number; sampleStrategy: string; fields: Record; } | { collections: string[]; id: string; path: string; data: unknown; } | { id: string; path: string; }[] | { total: number; indexes: Record; } | { documents: { id: string; path: string; data: unknown; }[]; nextPageCursor: string | null; } | { documents: { id: string; path: string; data: unknown; }[]; phantoms: { id: string; path: string; }[]; nextPageCursor?: undefined; } | { count: number; paths: { description?: string | undefined; name: string; template: string; parameters: string[]; type: string; }[]; usage: string; }, import("../../project").AccessDeniedError | import("./operations/aggregate_collection").FirestoreAggregateError | import("./operations/distinct_values").FirestoreDistinctValuesError | import("./operations/count_documents").FirestoreCountError | import("./operations/get_collection_schema").FirestoreSchemaError | import("./operations/get_document").FirestoreGetError | import("./operations/get_document").DocumentNotFoundError | import("./operations/get_many_documents").FirestoreGetManyError | import("./operations/list_collections").FirestoreListCollectionsError | import("./operations/list_documents").FirestoreListDocumentsError | import("./operations/list_indexes").FirestoreListIndexesError | import("./operations/query_collection").FirestoreQueryError | import("./operations/query_collection_group").FirestoreCollectionGroupQueryError | import("./operations/read_collections").FirestoreReadError | UnknownFirestoreOperationError>; export {}; //# sourceMappingURL=tool.d.ts.map