import type { PiperLiteDataSourceWire } from '../types/dataSource.type'; /** The JSON piper-lite's `POST /api/v1/execute/` accepts. */ export type PiperLiteExecutePayload = { pipeline_code: string; dataframe: string; args: Record; limit?: number; cursor?: string; }; /** Cursor pagination of a request (piper-lite `limit` + `cursor`). */ export type V2PageRequest = { /** Integer 1-100. The wire value for tables is 15. */ limit: number; /** Opaque: only a `nextCursor` of a previous response, or `null` for page 1. */ cursor: string | null; }; /** * The client bound of `limit`: an integer 1-100. Outside it, development * throws (a bug to fix) and production falls back to 15 (a page never breaks). */ export declare const resolvePageLimit: (limit: number) => number; /** * Protocol mapping of the `piperLite` kind (ADR-SVC-0011: the front knows the * piper-lite protocol). The wire is camelCase; piper-lite expects * `pipeline_code`. Only the three known fields are forwarded. `args` keys are * dataset argument names, not wire fields, so they pass through untouched, * except that each `dependsOn` state key with a value in `entries` is added to * `args` under that same key (overriding a declared arg of the same name), so a * change of that state changes the request body. With `page`, `limit` (and * `cursor`, when not `null`) are added; without it the payload has neither key. */ export declare const piperLiteRequest: (wire: PiperLiteDataSourceWire, entries?: Record, page?: V2PageRequest) => PiperLiteExecutePayload;