import type { IDataObject, IExecuteFunctions, IHttpRequestMethods, ILoadOptionsFunctions } from 'n8n-workflow'; import type { LoadedResource } from './types'; /** * Make a request to Baserow API. */ export declare function baserowApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, credentialType: string, body?: IDataObject, qs?: IDataObject): Promise; /** * Get all results from a paginated query to Baserow API. */ export declare function baserowApiRequestAllItems(this: IExecuteFunctions, method: IHttpRequestMethods, endpoint: string, credentialType: string, body: IDataObject, qs?: IDataObject): Promise; export declare function getFieldNamesAndIds(this: IExecuteFunctions, tableId: string, credentialType: string): Promise<{ names: string[]; ids: string[]; }>; export declare const toOptions: (items: LoadedResource[]) => { name: string; value: number; }[]; /** * Responsible for mapping field IDs `field_n` to names and vice versa. */ export declare class TableFieldMapper { nameToIdMapping: Record; idToNameMapping: Record; mapIds: boolean; getTableFields(this: IExecuteFunctions, table: string, credentialType: string): Promise; createMappings(tableFields: LoadedResource[]): void; private createIdToNameMapping; private createNameToIdMapping; setField(field: string): string; idsToNames(obj: Record): void; namesToIds(obj: Record): void; } //# sourceMappingURL=GenericFunctions.d.ts.map