export interface PageInfoData { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; } export interface PlainConnectionConfig { nodes: N[]; pageInfo: PageInfoData; totalCount?: number; fetch: (cursor: { after?: string; before?: string; }) => Promise>; } export declare class PlainConnection { readonly nodes: N[]; readonly pageInfo: PageInfoData; readonly totalCount?: number; private _fetch; constructor(config: PlainConnectionConfig); get hasNextPage(): boolean; get hasPreviousPage(): boolean; fetchNext(): Promise | undefined>; fetchPrevious(): Promise | undefined>; } //# sourceMappingURL=connection.d.ts.map