import type { Outcome } from '../types/outcome.type'; import type { TableWire } from '../types/table.type'; import { type TableModel } from '../utils/table.util'; /** Below this width every row becomes a card (Apollo: tables at 375 px). */ export declare const CARDS_QUERY = "(max-width: 480px)"; export type UseTableResult = { outcome: Outcome; retry: () => void; /** Zero-based page the user is on. */ pageIndex: number; hasPrevious: boolean; hasNext: boolean; next: () => void; previous: () => void; cards: boolean; }; /** * Behaviour of `v2.table`: loads one cursor page at a time and keeps the stack * of cursors of the pages already visited. The stack belongs to one request * (url, headers, body and the values of `dependsOn`): when that changes, e.g. a * filter, the table is back on page 1. Cursors are opaque and never leave this hook. */ export declare const useTable: (wire: TableWire, userFlow: string) => UseTableResult;