import type { Checkpoint, CheckpointSummary, CheckpointToken } from "./checkpoint-store.js";
import { CheckpointError } from "./checkpoint-features.js";
import { facetOf, type GateKind } from "./pause-registry.js";
/**
 * The page bounds of the two listing faces: a query without `limit` reads `default` rows, an explicit `limit` is an integer in
 * 1..`max`. A session page holds whole rows (each carries its parked state), an overdue page holds summaries — hence the smaller
 * session bound.
 */
export declare const CHECKPOINT_LIST_LIMITS: Readonly<{
    overdue: Readonly<{
        readonly default: 100;
        readonly max: 500;
    }>;
    session: Readonly<{
        readonly default: 100;
        readonly max: 100;
    }>;
}>;
/** A row's deadline semantic — {@link facetOf}'s answer for its gate (`A` approval SLA, `B` abandonment TTL, `-` the non-gate park). */
export type CheckpointFacet = ReturnType<typeof facetOf>;
type CheckpointRowStatus = Checkpoint["status"];
/** One page of a listing face: the rows, and the cursor of the next page — present exactly when more rows match after these. */
export interface CheckpointPage<R, C> {
    readonly rows: readonly R[];
    /** Pass it as the next query's `after`. The store mints it from its own order key; a caller never builds one. */
    readonly next?: C;
}
/** The order key of an overdue page: the instant the row is overdue at ({@link checkpointOverdueAt}: its deadline, or under an age
 *  backstop its `createdAt` plus the backstop; `-Infinity` for a value that is not a finite number), then its token. */
export interface CheckpointOverdueCursor {
    readonly deadline: number;
    readonly token: CheckpointToken;
}
/**
 * What {@link import("./checkpoint-store.js").CheckpointStore.listOverdue} is asked for: the PENDING rows of every scope whose
 * deadline has passed `cutoff` ({@link checkpointDeadlinePassed}) and whose gate reads as `facet` ({@link facetOf}, the card
 * overrides included — a question parked under an approval gate kind is `B`). Ordered by deadline, then token, ascending.
 * A deployment's sweep reads one facet at a time and disposes each row through the row CAS verbs (`expire`, or a resume that
 * denies): `A` rows are approvals whose deadline denies, `B` and `-` rows are abandoned at theirs.
 */
export interface CheckpointOverdueQuery {
    /** Epoch ms, a finite number. */
    cutoff: number;
    facet: CheckpointFacet;
    after?: CheckpointOverdueCursor;
    /** At most this many rows, an integer in 1..{@link CHECKPOINT_LIST_LIMITS}`.overdue.max`; absent = the default. */
    limit?: number;
    /**
     * The age backstop, in ms (a safe integer, 0 or more — a finite `createdAt` plus it stays finite): a pending row that carries no deadline is overdue once its `createdAt` plus
     * this has passed the cutoff, and sorts at that instant — {@link checkpointOverdueAt}, the one rule. A row that carries a deadline is
     * judged by its deadline alone. Absent = a row with no deadline is never overdue.
     */
    maxAgeMs?: number;
}
/** The order key of a session page: the row's `createdAt` (`-Infinity` for one that is not a finite number), then its token. */
export interface CheckpointSessionCursor {
    readonly createdAt: number;
    readonly token: CheckpointToken;
}
/**
 * What {@link import("./checkpoint-store.js").CheckpointStore.listBySession} is asked for: the rows of ONE session, of every
 * status unless `status` says one, narrowed by the members present. Ordered by `createdAt`, then token — oldest first unless
 * `order` says `newest`. "The session's pending row of these gate kinds, newest first" is `{ status: "pending", gateKinds,
 * order: "newest", limit: 1 }`; "the rows that parked this tool call" is `{ toolCallId }`; "does the session hold an expired
 * row" is `{ status: "expired", limit: 1 }`.
 */
export interface CheckpointSessionQuery {
    /** The session id (non-empty). */
    sessionId: string;
    /**
     * Which session of a row `sessionId` names: `"session"` (absent) = the row's own {@link Checkpoint.sessionId}, the session a resume
     * continues; `"run"` = the session of the run the row's card is on, {@link checkpointRunSessionOf} — a cascade rung's and a repair restart's
     * card belong to their host's run, every other card to its own session. A row whose run session cannot be read is attributable to no run:
     * left out of a `"run"` page and disclosed.
     */
    axis?: "session" | "run";
    /** Only the rows filed in this scope. */
    scope?: string;
    /** Only the rows in this status. Absent = every status. */
    status?: CheckpointRowStatus;
    /** Only the rows parked on one of these gate kinds; an empty list matches no row. Absent = every kind. */
    gateKinds?: readonly GateKind[];
    /** Only the rows whose pending action is a `tool_approval` of this tool call (a park with no tool call never matches). */
    toolCallId?: string;
    /** Only the rows created at or after this epoch ms (a finite number). */
    createdSince?: number;
    order?: "oldest" | "newest";
    after?: CheckpointSessionCursor;
    /** At most this many rows, an integer in 1..{@link CHECKPOINT_LIST_LIMITS}`.session.max`; absent = the default. */
    limit?: number;
}
/**
 * One row of a session page. `row` is a readable row (its members match the query and every member the face judged is well formed). `unreadable`
 * is a row of THIS session that matches every filter the store could judge but whose stored shape the face cannot read — a token member other than
 * the key it is filed under, a scope that is not a string, a status outside the three words, a gate with no registered kind, a pending action with
 * no kind, a tool approval with no tool call id, a `createdAt` that is not a finite number, a state that is not an object: it is answered rather
 * than skipped (an unreadable row is not an absent one) and rather than failing the page (one damaged row does not hide the readable rows beside
 * it). A consumer that takes its token to `get` never meets a card it can resume: `get` refuses a row that does not decode as a row at all
 * ({@link storedCheckpointRowRefusal}: its token, scope or status), and answers any other row as stored — the row judge (`judgeCheckpointRow`)
 * answers it `damaged`, and a resume refuses it before anything is consumed; one exception: a status string none of the three words is handed back
 * and the row judge answers it `ok` — the readers of the status read it as no longer pending (a resume `already_resolved`, the decision judge
 * `not_pending`; KL-5246-b). The store discloses it through its own seat. Its `token` is the key the store files it under.
 */
export type CheckpointRowRead = {
    readonly kind: "row";
    readonly checkpoint: Checkpoint;
} | {
    readonly kind: "unreadable";
    readonly token: CheckpointToken;
    /** The stored scope, or `null` when it is not a string. */
    readonly scope: string | null;
    readonly sessionId: string;
    /** The status as stored (a word outside the three is part of the damage). */
    readonly status: string;
    /** The stored `createdAt`, or `null` when it is not a finite number. */
    readonly createdAt: number | null;
    /** What could not be read, naming the member by its shape (never its value). */
    readonly problem: string;
};
/**
 * The guard of {@link import("./checkpoint-store.js").CheckpointStore.deleteSessionCheckpoints}: the rows are deleted only when the
 * session's own row exists and is owned by `owner` — compared null-safe (`null` = the anonymous session, and it matches only an
 * anonymous one). No session row, or another owner, deletes nothing and answers `0`. `owner` is a principal name or `null`: a
 * blank string names nobody and is refused. It is read as a stored name is (`recordedPrincipalNameOf`): it only picks out the session
 * whose head holds that string, so the owner of a session an earlier release wrote under a name the rule now refuses as ill-formed
 * (an unpaired surrogate) or as one with white space at an end deletes its rows by that same string.
 */
export interface CheckpointDeleteGuard {
    readonly owner: string | null;
}
/** {@link readCheckpointOverdueQuery}'s answer: the members as read, the default limit filled in. */
export interface CheckpointOverdueQueryReading {
    readonly cutoff: number;
    readonly facet: CheckpointFacet;
    readonly after?: CheckpointOverdueCursor;
    readonly limit: number;
    readonly maxAgeMs?: number;
}
/** {@link readCheckpointSessionQuery}'s answer: the members as read, the default order and limit filled in (an absent `axis` is the
 *  session axis). */
export interface CheckpointSessionQueryReading {
    readonly sessionId: string;
    readonly axis?: "session" | "run";
    readonly scope?: string;
    readonly status?: CheckpointRowStatus;
    readonly gateKinds?: readonly GateKind[];
    readonly toolCallId?: string;
    readonly createdSince?: number;
    readonly order: "oldest" | "newest";
    readonly after?: CheckpointSessionCursor;
    readonly limit: number;
}
/** The one reading of a {@link CheckpointOverdueQuery} for every store that implements `listOverdue`. A bad value is refused,
 *  never mapped to a default: `config.invalid_argument`. */
export declare function readCheckpointOverdueQuery(raw: unknown): CheckpointOverdueQueryReading;
/** The one reading of a {@link CheckpointSessionQuery} for every store that implements `listBySession`. A bad value is refused,
 *  never mapped to a default: `config.invalid_argument`. */
export declare function readCheckpointSessionQuery(raw: unknown): CheckpointSessionQueryReading;
/** The guard's one reading (the delete is irreversible, so a guard that is not exactly `{ owner: <the owner name a session row holds> | null }`
 *  is refused). The owner is read as a stored name ({@link CheckpointDeleteGuard}), so it is judged against the session's head by
 *  {@link deleteGuardAdmits} — string equality — never handed to a backend to match by. */
export declare function readCheckpointDeleteGuard(sessionId: unknown, raw: unknown): {
    readonly sessionId: string;
    readonly owner: string | null;
};
/** Does the session's head admit the delete: a row exists and its owner equals the guard's, null-safe. */
export declare function deleteGuardAdmits(head: {
    readonly owner: string | null;
} | undefined, owner: string | null): boolean;
/** A session store's head read, as a checkpoint store is handed it (`sessionHeadOf`). */
export type SessionHeadRead = (sessionId: string) => Promise<{
    readonly owner: string | null;
} | undefined>;
/** One session's checkpoint-row delete as its door judged it: the session it names, and the admission read after the rows are taken. */
export interface SessionRowsDelete {
    readonly sessionId: string;
    readonly isAdmitted: () => Promise<boolean>;
}
/** The owner's delete ({@link CheckpointStore.deleteSessionCheckpoints}): the guard read once, admitted when the head's owner equals the guard's. */
export declare function ownerSessionRowsDelete(sessionId: unknown, guard: unknown, headOf: SessionHeadRead): SessionRowsDelete;
/** The operator's delete ({@link CheckpointStore.deleteUnreadableSessionCheckpoints}): admitted exactly when the head read is refused
 *  `corrupt_session`; a readable head or no head admits nothing, and any other fault of the read rejects the call. */
export declare function unreadableSessionRowsDelete(sessionId: unknown, headOf: SessionHeadRead): SessionRowsDelete;
/**
 * A session's checkpoint-row delete over a store's rows, for both first-party stores and both doors: the session's rows taken as they
 * stand when the call starts — BEFORE the head read, so a row put while it is awaited (another generation of the id, under another
 * owner) is never one of them — the door's admission read on the head, then each taken row handed to `remove`, which deletes it only
 * while it is still that row and answers whether it did. Answers the count.
 */
export declare function deleteSessionRowsAtStart(rows: Iterable<readonly [string, Checkpoint]>, request: SessionRowsDelete, remove: (token: string, row: Checkpoint) => boolean | Promise<boolean>): Promise<number>;
/**
 * Has a row's deadline passed `cutoff`? A row with no deadline never has; a deadline that is not a finite number always has —
 * a bound nobody can evaluate is not a bound, and leaving it would keep the row pending forever (core sanitizes its own mints,
 * but rows also come from other backends and older engines, and a JSON-held `NaN` reads back as `null`). The two `reap` verbs and
 * {@link selectOverduePage} read this one rule.
 */
export declare function checkpointDeadlinePassed(deadline: number | null | undefined, cutoff: number): boolean;
/**
 * A row's deadline as an index column ({@link import("./checkpoint-store.js").CheckpointIndexFacts.deadline}) — the rule above, written
 * so a backend that compares the column to a cutoff (`deadline <= cutoff`, `IS NULL` = never) answers what the reap verbs answer: no
 * deadline ⇒ `null`; a finite number ⇒ itself; a deadline present but not a finite number (a JSON-held `NaN` reads back as `null`) ⇒
 * `Number.MIN_SAFE_INTEGER`, past every cutoff. Never the reverse: reading such a row as "no deadline" would keep it pending forever.
 */
export declare function checkpointDeadlineColumn(deadline: number | null | undefined): number | null;
/**
 * The instant a pending row is overdue at, for {@link CheckpointOverdueQuery}: its deadline when it carries one (as stored — a value
 * that is not a finite number is past every cutoff, {@link checkpointDeadlinePassed}); else, under an age backstop (`maxAgeMs`), its
 * `createdAt` plus the backstop (a `createdAt` that is not a finite number answers `NaN`: past every cutoff, sorted first — the
 * deadline rule's reason: a bound nobody can evaluate would keep the row pending forever); else `undefined`, never overdue. The overdue
 * face judges and orders by this one value. A backend with columns answers it as `deadline <= cutoff OR (deadline IS NULL AND
 * (created_at IS NULL OR created_at + maxAgeMs <= cutoff))`, ordered by `COALESCE(deadline, created_at + maxAgeMs, -9007199254740991)`
 * then token — the deadline column already holds `Number.MIN_SAFE_INTEGER` for a deadline that is not a finite number, so both damaged
 * forms share that key and the token breaks the tie, as the `-Infinity` key does here.
 */
export declare function checkpointOverdueAt(row: {
    readonly deadline?: unknown;
    readonly createdAt?: unknown;
}, maxAgeMs: number | undefined): number | null | undefined;
/**
 * THE RUN AXIS of a checkpoint row — the session of the run that redeems its card: the leg's `hostSessionId` when the row records a
 * composition leg whose entry {@link RUN_SESSION_OF_ENTRY} reads as the host's (a cascade rung, a repair restart), else the row's own
 * `sessionId` (a verifier's card, and every row that records no leg). Pure, total, reads only the row's own two members. `undefined` =
 * the row is attributable to no run: its `sessionId` is not a string, its `state` is not an object, or the leg it records is not a
 * readable leg (not an object, an entry outside the set, a host entry whose host session is not a non-empty string). Not
 * `workSessionOfLeg` (where a leg STANDS — a verifier stands in its implementation's tree, yet its card is its own). The session
 * listing's `axis: "run"` and the index column {@link import("./checkpoint-store.js").CheckpointIndexFacts.runSessionId} read it.
 */
export declare function checkpointRunSessionOf(row: {
    readonly sessionId: unknown;
    readonly state: unknown;
}): string | undefined;
/**
 * The one refusal of a stored checkpoint row nothing can read as a row — `CheckpointError` code `checkpoint.invalid_outcome`,
 * `detail.reason` `requirements_damaged`, the message one of the two row-damaged sentences (picked by `standing`, below) then `diagnostic` (which names what was wrong by
 * its shape, never a stored value). The row judge answers a row it cannot read with it, and `CheckpointStore.get` throws it for a row
 * it cannot hand back ({@link storedCheckpointRowRefusal}); a backend that decodes stored bytes (a SQL store) throws it when the bytes
 * do not decode at all, with its own diagnostic (`"the stored bytes are not JSON"`). `thrownName` = what was thrown while reading.
 * `standing` = what the refuser can read of the row's status: `"pending"` (it READ `pending`; the row judge's own throw arm,
 * `readRowTotal` in checkpoint-row-verdict.ts, passes it without reading the status — KL-4748-a) opens with the row-damaged sentence
 * (the row stays pending, nothing was consumed); `"unknown"` (a settled status, one that does not read, or bytes that do not decode —
 * the default) opens with {@link CHECKPOINT_ROW_UNCONFIRMED_SENTENCE}, which claims neither: such a row may have been decided and its
 * action may already have run, so the sentence never tells a reader to start the task again.
 */
export declare function checkpointRowUnreadable(diagnostic: string, standing?: "pending" | "unknown", thrownName?: string): CheckpointError;
/** Is `e` the refusal {@link checkpointRowUnreadable} mints (a row nothing can read) — the one test an engine reader of `get` uses to
 *  tell it from a store that could not be reached. */
export declare function isCheckpointRowUnreadable(e: unknown): boolean;
/**
 * `CheckpointStore.get`'s judgment of the row filed under `key`: `undefined` = hand it back as stored; else the refusal `get` throws —
 * {@link checkpointRowUnreadable} for a value that is not a row of this table's `rowKey` segment (not an object; its token, scope or
 * status not a string — the segment the file store's replay drops a row by), or whose token member is not `key` (it would be answered
 * as another token's row); a member whose read throws is refused too. Any other damage (a status string none of the three words
 * included) is not `get`'s to judge: the row is answered, and the row judge reads it. Total. The refusal opens with the pending sentence
 * only for a refused row whose status reads `pending` and that records no execution outcome (the judge's `execution_recorded` fact: such
 * a row's action may have run); any other — settled, a status that does not read, an outcome recorded — opens with the unconfirmed one
 * (`standing` of the mint), and the diagnostic names the stored status when it is one of the three words.
 */
export declare function storedCheckpointRowRefusal(key: string, row: unknown): CheckpointError | undefined;
/** A row's members as the listing faces read them: each read once and widened to `unknown`, since the stored shape is what is judged
 *  (a row came back from storage; its type says what was written, not what is there). */
interface RowMembers {
    /** The key the store files the row under — the authoritative token (the row's own `token` member is judged against it). */
    readonly key: string;
    readonly token: unknown;
    readonly sessionId: unknown;
    readonly scope: unknown;
    readonly status: unknown;
    readonly gate: unknown;
    readonly pendingAction: unknown;
    readonly createdAt: unknown;
    readonly deadline: unknown;
    readonly state: unknown;
    readonly checkpointId: unknown;
    readonly resourceLedger: unknown;
    readonly parentSessionId: unknown;
    readonly parentTaskId: unknown;
    readonly rootSessionId: unknown;
    readonly rootSessionIncarnation: unknown;
}
/** The members {@link ROW_MEMBER_SHAPES} reads — no other (none a store's own transitions rewrite). */
type ShapeMembers = Pick<RowMembers, "gate" | "pendingAction" | "state" | "createdAt" | "deadline" | "resourceLedger" | "checkpointId" | "parentSessionId" | "parentTaskId" | "rootSessionId" | "rootSessionIncarnation">;
/**
 * THE ROW'S MEMBER SHAPES — the reading every reader of a stored row makes of the members it reaches into, written once: the row
 * judge (`judgeCheckpointRow`, the resume's first rung), the listing projection (`summarizeCheckpoint`) and the listing faces read
 * this table and no shape test of their own, so over these members no face answers `ok` for a row another cannot read. The gate a
 * record of a registered gate kind; the pending action a record of a registered pending kind — the one the gate's kind pairs with in
 * the pause registry — a tool approval carrying a tool call id and, when it carries the identity of its tool, a capability id of the form
 * the engine mints ({@link isSha16}: the park mints it from the roster row, never by another route); the state a record, whose leg task id (the summary's agent id reads it) is absent or a string — the task id as the leg minted it, a blank one included — and whose workspace handle (the resume leg's one reading of where its workspace is) is absent or carries its three required members as strings ({@link workspaceHandleShape}); `createdAt` a finite number; `deadline` absent or a finite number; the resource ledger absent or a record
 * (the summary reads its spend); the checkpoint id absent or a non-blank string (the summary echoes it and names the row by it: an
 * empty one, or one of whitespace alone, names no row, and no writer mints one); the synchronous-child block (the parent session and task and the tree's root
 * session and its occupant) each absent or a non-blank string of the same kind. Each entry names the member by its shape, never a particular value; `undefined`
 * = it reads.
 */
declare const ROW_MEMBER_SHAPES: readonly [readonly ["gate", (m: ShapeMembers) => string | undefined], readonly ["pendingAction", (m: ShapeMembers) => string | undefined], readonly ["state", (m: ShapeMembers) => string | undefined], readonly ["createdAt", (m: ShapeMembers) => string | undefined], readonly ["deadline", (m: ShapeMembers) => string | undefined], readonly ["resourceLedger", (m: ShapeMembers) => string | undefined], readonly ["checkpointId", (m: ShapeMembers) => string | undefined], readonly ["parentSessionId", (m: ShapeMembers) => string | undefined], readonly ["parentTaskId", (m: ShapeMembers) => string | undefined], readonly ["rootSessionId", (m: ShapeMembers) => string | undefined], readonly ["rootSessionIncarnation", (m: ShapeMembers) => string | undefined]];
/** A member {@link ROW_MEMBER_SHAPES} names. */
export type RowMemberName = (typeof ROW_MEMBER_SHAPES)[number][0];
/** The first member of a row that does not read as {@link ROW_MEMBER_SHAPES} says, and the table's words for it. */
export interface RowMemberProblem {
    readonly member: RowMemberName;
    readonly problem: string;
}
/** The fixed sentence of a checkpoint row whose content does not read the way it was recorded — the row judge's `requirements_damaged`
 *  refusal and the checkpoint shape table's sentence (one text: the judge's sentence table reads it from here). An earlier release's
 *  intact row that this release reads differently is not this row: it is `reading_changed`, with its own sentence. */
export declare const CHECKPOINT_ROW_DAMAGED_SENTENCE = "This engine cannot resume this checkpoint: its content does not read the way it was recorded when it was parked \u2014 it was changed or lost in storage. The checkpoint stays pending and nothing was consumed. Expire it, then start the task again.";
/** The fixed sentence of a stored row a store's `get` refuses when the row does not read as pending — its status is settled, or does
 *  not read, or its bytes do not decode: the row cannot be read, and whether it was settled and whether the action it approved has
 *  run cannot be confirmed from it. A pending row keeps {@link CHECKPOINT_ROW_DAMAGED_SENTENCE}. */
export declare const CHECKPOINT_ROW_UNCONFIRMED_SENTENCE = "This engine cannot read this checkpoint row: its stored content does not read as a row, so whether it was already settled \u2014 and whether the action it approved has already run \u2014 cannot be confirmed from it. The action may already have run: check what became of it before deciding whether to run the work again \u2014 running it again may repeat it.";
/**
 * THE CHECKPOINT ROW'S SHAPE TABLE, three named segments, each face judging the segments it reads (`rowShapeReader`, row-shape.ts):
 *  - `rowKey` — what the file replay files a row under: a string token, scope and status (the replay's row judge, and an event's
 *    `put` payload);
 *  - `placement` — where a row sits, for the overdue face: its token against the key the store files it under, its scope, its
 *    status word, its gate ({@link gateShape}: the deadline facet reads its kind). That face leaves a row so damaged off its page;
 *  - `members` — {@link ROW_MEMBER_SHAPES}, the reading the row judge (`judgeCheckpointRow`'s member arm), the summary projection
 *    and the session face make of the members they reach into.
 * The session face judges `placement` then `members` and answers a damaged row `unreadable`. The judge's other arms (version,
 * requirements, retired seats, sections) are the judge's, not this table's.
 */
export declare const CHECKPOINT_ROW_SHAPE: import("./row-shape.js").RowShapeReader<Checkpoint>;
/**
 * Where a row's members fail {@link ROW_MEMBER_SHAPES} — the one reading the row judge, the summary projection and the listing faces
 * make of them: the first member that does not read and the table's words for it; `undefined` = every member reads. Reads the eleven
 * members the table names, each once. May throw (a member that throws when read); the caller is total.
 */
export declare function rowMemberProblem(cp: Checkpoint): RowMemberProblem | undefined;
/**
 * The overdue page over a store's rows (`[key, row]` pairs — the key is the authoritative token): pending ∧
 * {@link checkpointDeadlinePassed} of {@link checkpointOverdueAt} (the deadline, else the age backstop) ∧ `facetOf(gate) === facet`,
 * after the cursor, ordered (that instant's key, token) ascending — the cursor's `deadline` is that key — filled up
 * to `limit` with the rows whose summary `project` mints. A candidate the face cannot place (its sessionId, then the `placement` segment of {@link CHECKPOINT_ROW_SHAPE}: no string
 * session id, a token other than its key, no readable scope, status or gate kind — the facet reads them) is left out and disclosed
 * (`disclose` gets one sentence per such row, on every call) and the page fills on from the next candidate. Every other row is
 * answered, a damaged one in the summary's unreadable form (`project` is total, as `summarizeCheckpoint` is — the listing of a
 * scope answers that row the same way); only the rows of the page are projected. A `project` of a caller's own that throws
 * leaves its row out, disclosed. `next` is present when a candidate remains after the page's last row (a page after it can come
 * back shorter, even empty, when every remaining candidate is unplaced).
 */
export declare function selectOverduePage(rows: Iterable<readonly [string, Checkpoint]>, query: CheckpointOverdueQueryReading, project: (cp: Checkpoint) => CheckpointSummary, disclose?: (sentence: string) => void): CheckpointPage<CheckpointSummary, CheckpointOverdueCursor>;
/**
 * The session page over a store's rows (`[key, row]` pairs — the key is the authoritative token): the session's rows — by the query's
 * `axis`, the rows whose own session is it, or whose run session ({@link checkpointRunSessionOf}) is — narrowed by the query's members, after the cursor, ordered (createdAt key, token) in the query's order, cut at `limit` before anything is
 * copied (`clone` runs for the page's readable rows only). A filter that reads a damaged member cannot exclude the row, so a row of
 * this session that no readable filter excludes and that carries damage is answered `unreadable` (and disclosed); a row whose
 * session id is not a string is attributable to no session — left out and disclosed, as is, on the run axis, a row whose run session
 * cannot be read. `next` is present exactly when more rows
 * match after the page.
 */
export declare function selectSessionPage(rows: Iterable<readonly [string, Checkpoint]>, query: CheckpointSessionQueryReading, clone: (cp: Checkpoint) => Checkpoint, disclose?: (sentence: string) => void): CheckpointPage<CheckpointRowRead, CheckpointSessionCursor>;
export {};
