export interface DataSourceType {
    key: string;
    displayName: string;
    status: string;
    type: string;
    isDBInstance: boolean;
    collections: Collection[];
}
export declare type ActionsItem = {
    method: string;
    path: string;
    params: {
        name: string;
        value: string;
    }[];
    headers: {
        name: string;
        value: string;
    }[];
    body: Record<string, any>;
};
export interface Collection {
    name: string;
    title: string;
    tableName: string;
    timestamps: boolean;
    autoGenId: boolean;
    filterTargetKey: string;
    fields: Field[];
    introspected: boolean;
    unavailableActions: any[];
    actions: {
        get: ActionsItem;
        update: ActionsItem;
        create: ActionsItem;
        delete: ActionsItem;
        list: ActionsItem;
    };
}
interface Field {
    name: string;
    type: string;
    allowNull: boolean;
    primaryKey: boolean;
    unique: boolean;
    autoIncrement: boolean;
    description?: (null | string)[];
    possibleTypes?: string[];
    rawType: string;
    interface: string;
    uiSchema: UiSchema;
    key?: string;
    collectionName?: string;
    collectionKey?: any;
    dataSourceKey?: string;
    defaultValue?: any;
}
interface UiSchema {
    type?: string;
    'x-component': string;
    'x-component-props'?: Xcomponentprops;
    'x-validator'?: string;
    title: string;
    default?: any;
    enum?: any[];
}
interface Xcomponentprops {
    style?: Style;
    autoSize?: AutoSize;
    stringMode?: boolean;
    step?: string;
    dateFormat?: string;
    showTime?: boolean;
}
interface AutoSize {
    minRows: number;
}
interface Style {
    width: string;
}
/**
 * 获取nocobase自定义数据源
 */
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
/**
 * 获取nocobase主数据源
 */
export declare const getNocobaseMainDataSource: () => Promise<any>;
/**
 * 获取nocobase数据源设置
 */
export declare const getNocobaseDataSourceOptions: () => Promise<any>;
/**
 * 创建nocobase数据
 */
export declare const createNocobaseData: (params: {
    key: string;
    data: any;
    headers?: any;
}) => Promise<any>;
/**
 * nocobase get数据
 */
export declare const getNocobaseData: (params: {
    key: string;
    query: Record<string, any>;
    headers?: any;
}) => Promise<any>;
/**
 * 自定义api接口
 */
export declare const customApi: (url: string, data: Record<string, any>, options: {
    method: 'GET' | 'POST' | 'PUT' | 'DELETE';
    baseUrl?: string | undefined;
    headers?: {
        name: string;
        value: any;
    }[] | undefined;
    params?: {
        name: string;
        value: any;
    }[] | undefined;
    body?: Record<string, any> | undefined;
}) => Promise<any>;
/**
 * 更新nocobase数据
 */
export declare const updateNocobaseData: (params: {
    key: string;
    data: any;
    headers?: any;
    query?: Record<string, any> | undefined;
}) => Promise<any>;
/**
 * 获取nocobase数据列表
 */
export declare const getNocobaseDataList: (allParams: {
    key: string;
    params: {
        page: number;
        pageSize: number;
    };
    headers?: any;
}) => Promise<any>;
/**
 * 删除nocobase数据
 */
export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
export {};
