import { type PlatformRequestFilter } from '@substrat-run/contracts'; /** * The one SELECT behind every read of a scope's intent journal (#618). * * Three surfaces answer the same question from the same table — `ctx.platformRequests` inside an * operation, the host's `listPlatformRequestHistory` for the control plane, and the Durable * Object's RPC underneath it — and they must not drift on which columns come back or what * "newest" means. Ids are ULIDs, so `ORDER BY id DESC` IS newest-first without a second index. * * The filter is re-parsed here rather than trusted: this builds SQL, and `kind` arrives from an * HTTP query string on one of those paths. Values are bound, never interpolated. */ /** Every column of `_substrat_platform_requests`, in the order the row mappers expect. */ export declare const PLATFORM_REQUEST_COLUMNS = "id, kind, payload, requested_by, impersonation, status, attempts, last_error, last_failure, result, requested_at, settled_at"; export declare function platformRequestHistoryQuery(filter?: PlatformRequestFilter): { sql: string; params: (string | number)[]; }; //# sourceMappingURL=platform-request-query.d.ts.map