import { PublicDataSource, RelationalDatabaseSchema } from '@kottster/common';
type ExecuteAction = {
    action: 'getDataSources';
    data: {};
    result: PublicDataSource[];
} | {
    action: 'getDataSourceSchema';
    data: {
        name: string;
    };
    result: RelationalDatabaseSchema;
};
declare function executeAction<A extends ExecuteAction['action']>(action: A, data: Extract<ExecuteAction, {
    action: A;
}>['data']): Promise<Extract<ExecuteAction, {
    action: A;
}>['result']>;
export default executeAction;
