import { $$deepDepSkip } from "../constants.ts"; import type { ExecutionDetails, GrafastResultsList, UnbatchedExecutionExtra } from "../interfaces.ts"; import { Step } from "../step.ts"; import type { StepRepresentingList } from "./connection.ts"; declare function unbatchedExecute(_extra: UnbatchedExecutionExtra, list: any[]): any; export declare class FirstStep extends Step { static $$export: { moduleName: string; exportName: string; }; allowMultipleOptimizations: boolean; unbatchedExecute?: typeof unbatchedExecute; constructor(parentPlan: StepRepresentingList, isArray?: boolean); [$$deepDepSkip](): Step; execute({ indexMap, values: [values0], }: ExecutionDetails<[ReadonlyArray]>): GrafastResultsList; deduplicate(peers: FirstStep[]): FirstStep[]; optimize(): any; } /** * A plan that resolves to the first entry in the list returned by the given * plan. * * @param plan - the list plan * @param array - set this true if the plan represents an array (or * null/undefined) - i.e. it' won't be an (async) iterable - to enable greater * optimization */ export declare function first(plan: StepRepresentingList, array?: boolean): FirstStep; export {}; //# sourceMappingURL=first.d.ts.map