import type { ErroredQuery } from '../../../zero-protocol/src/custom-queries.ts'; import type { Value } from '../../../zero-protocol/src/data.ts'; import type { Schema } from '../../../zero-schema/src/builder/schema-builder.ts'; import type { Query } from '../query/query.ts'; import type { TTL } from '../query/ttl.ts'; import type { Input } from './operator.ts'; export type View = EntryList | Entry | undefined; export type EntryList = readonly Entry[]; export type Entry = { readonly [key: string]: Value | View; }; export type Format = { singular: boolean; relationships: Record; }; export type ViewFactory = (query: Query, input: Input, format: Format, onDestroy: () => void, onTransactionCommit: (cb: () => void) => void, queryComplete: true | ErroredQuery | Promise, updateTTL: (ttl: TTL) => void) => T; //# sourceMappingURL=view.d.ts.map