/** Arguments and limits for a cursor connection, independent of the Relay plugin. */ export interface CursorConnectionOptions { args: { before?: string | null; after?: string | null; first?: number | null; last?: number | null; }; defaultSize?: number; maxSize?: number; totalCount?: number; } /** Validate page-size arguments without imposing cursor or direction restrictions. */ export declare function validateConnectionArguments({ first, last, }: Pick): void; /** Include one extra row so a connection can determine whether another page exists. */ export declare function getConnectionPageSize({ args: { first, last }, defaultSize, maxSize, }: Pick): { limit: number; expectedSize: number; }; export declare function parseCursorConnectionArgs(options: CursorConnectionOptions): { before: string | undefined; after: string | undefined; limit: number; expectedSize: number; inverted: boolean; hasPreviousPage: (resultSize: number) => boolean; hasNextPage: (resultSize: number) => boolean; }; //# sourceMappingURL=connection-args.d.ts.map