import { type Code } from "ts-poet"; import { MetaObject } from "@metaobjectsdev/metadata"; import type { RenderContext } from "../render-context.js"; /** * `exclude` (FR-017): drop a field from the allowlist. Used by per-subtype TPH * allowlists to omit the discriminator — it's pinned by the per-subtype route * path, so a client must not filter on it. * * `ctx` supplies `timestampMode`: under `"date"` a `field.timestamp` column binds a JS * `Date`, so its rule carries `dateValues: true` and runtime-ts's filter parser coerces * the query-string value with `new Date(...)` rather than binding a string against a * Date-typed column (which threw at request time). `ctx.timestampMode` is already * normalized to `"string"` for sqlite/D1 at both config choke points, so no dialect * branching is needed here. Absent `ctx`, or in the default mode, output is unchanged. */ export declare function renderFilterAllowlist(entity: MetaObject, exclude?: string, ctx?: RenderContext): Code; export declare function renderSortAllowlist(entity: MetaObject, exclude?: string): Code; //# sourceMappingURL=filter-allowlist.d.ts.map