import { PublicDataSource, RelationalDatabaseSchema } from '@kottster/common';
type ExecuteAction = {
    action: 'getDataSources';
    data: object;
    result: PublicDataSource[];
} | {
    action: 'getDataSourceSchema';
    data: {
        name: string;
    };
    result: RelationalDatabaseSchema;
};
/**
 * Execute an internal API action
 * @param action Action to execute
 * @param data Data to send to the action
 * @returns Result of the action
 */
export declare function executeAction<A extends ExecuteAction['action']>(action: A, data: Extract<ExecuteAction, {
    action: A;
}>['data']): Promise<Extract<ExecuteAction, {
    action: A;
}>['result']>;
export {};
