import { AppSchema, DataSourceType, PageFileStructure } from '@kottster/common';
type ExecuteDevSyncAction = {
    action: 'initApp';
    data: {
        id: number;
        name: string;
        secretKey: string;
    };
    result: {};
} | {
    action: 'updateSchema';
    data: AppSchema;
    result: {};
} | {
    action: 'updateFiles';
    data: {
        createOrUpdatePages?: PageFileStructure[];
    };
    result: {};
} | {
    action: 'getFiles';
    data: {
        pageId: string;
        includeProcedures?: boolean;
    };
    result: {
        page?: PageFileStructure | null;
    };
} | {
    action: 'createPage';
    data: {
        pageId: string;
    };
    result: {};
} | {
    action: 'updatePage';
    data: {
        pageId: string;
        page: {
            pageId: string;
        };
    };
    result: {};
} | {
    action: 'deletePage';
    data: {
        pageId: string;
    };
    result: {};
} | {
    action: 'addDataSource';
    data: {
        type: DataSourceType;
        connectionDetails: {
            connection: string | Record<string, any>;
            searchPath?: string[];
        };
    };
    result: {};
} | {
    action: 'installPackagesForDataSource';
    data: {
        type: DataSourceType;
    };
    result: {};
};
export declare function executeDevSyncAction<A extends ExecuteDevSyncAction['action']>(action: A, data: Extract<ExecuteDevSyncAction, {
    action: A;
}>['data']): Promise<Extract<ExecuteDevSyncAction, {
    action: A;
}>['result']>;
export {};
