import { LimitRows } from './limit_rows'; import { Table } from '../one/table'; import { SelectExpectedSingleRow } from './select_expected_single_row'; import { Runnable } from '../../databases/database_context'; import { SelectStatement } from '../../statements/select_statement'; import { GroupSelectStatement } from '../../statements/group_select_statement'; import { DistinctRows } from './distinct_rows'; export declare class SelectRows implements Runnable { statement: SelectStatement | GroupSelectStatement; constructor(statement: SelectStatement | GroupSelectStatement); single(): SelectExpectedSingleRow; limit(limit: number): LimitRows; distinct(): DistinctRows; readonly clientInstruction = "rows"; } export declare function selectTable(statement: SelectStatement): SelectRows; export declare function mapTable(statement: SelectStatement, map: Function): SelectRows; export declare function mapTableWithSubquery(statement: SelectStatement, map: Function, subtable: Table): SelectRows; export declare function aggregateGroups(statement: GroupSelectStatement, aggregation: Function): SelectRows;