/** Selected Admin entry transport over generated native Views and Procedures. No schema or SQL interpreter. */ import { type Row, type Caller } from "@aotter/mantle/contracts"; import { type Route } from "./index.js"; import { type NativeCollection, type NativeProcedureAdapter } from "./native.js"; export type EntryScalar = string | number | boolean; /** Validated parameters select generated native pages; this is not a generic Store query. */ export interface EntryPageQuery { readonly input: Row; readonly order: string; readonly limit?: number; readonly cursor?: string; readonly match?: { readonly filters: Readonly>; readonly search?: string; }; } export interface EntrySchema { readonly binding: NativeCollection; readonly transition?: (db: Database, caller: Caller, verb: "publish" | "unpublish" | "archive", id: string, expectedVersion: number | string) => Promise; readonly name: string; readonly descriptor: Record; readonly publishing: boolean; readonly primary?: boolean; readonly readOnly: boolean; /** Generated indexed fields, selected input checks and cursor validation. */ readonly fields: Readonly>; readonly query: (params: URLSearchParams) => EntryPageQuery | null; readonly defaults: Row; /** Selected native transport constraints, emitted only for PostgreSQL. */ readonly native?: (value: unknown) => void; readonly validate: (data: Row, full: boolean) => Row; readonly values: (data: Row, patch?: boolean) => Row; readonly row: (row: Row) => Row; } export declare function entries(schemas: readonly EntrySchema[], adapter: NativeProcedureAdapter): readonly Route[];