import type { TeamMemberInfo, TeamMemberFormValues, TeamMemberQueryParams, PaginationData, RoleInfo } from './type';
/**
 * 获取团队成员列表
 * GET: /tenant/account
 */
export declare const getTeamMembers: (params?: TeamMemberQueryParams) => Promise<PaginationData<TeamMemberInfo>>;
/**
 * 获取团队成员详情
 * GET: /tenant/account/{id}
 */
export declare const getTeamMemberDetail: (id: number) => Promise<TeamMemberInfo>;
/**
 * 创建团队成员
 * POST: /tenant/account
 */
export declare const createTeamMember: (data: TeamMemberFormValues) => Promise<TeamMemberInfo>;
/**
 * 更新团队成员
 * PUT: /tenant/account/{id}
 */
export declare const updateTeamMember: (id: number, data: Partial<TeamMemberFormValues>) => Promise<TeamMemberInfo>;
/**
 * 删除团队成员
 * DELETE: /tenant/account/{id}
 */
export declare const deleteTeamMember: (id: number) => Promise<void>;
/**
 * 激活团队成员
 * PUT: /tenant/account/{id}
 */
export declare const activateTeamMember: (id: number) => Promise<TeamMemberInfo>;
/**
 * 停用团队成员
 * PUT: /tenant/account/{id}
 */
export declare const deactivateTeamMember: (id: number) => Promise<TeamMemberInfo>;
/**
 * 获取所有角色列表（用于筛选和表单选择）
 * GET: /tenant/role
 */
export declare const getRoles: () => Promise<RoleInfo[]>;
/**
 * 通过email查询账号
 * GET: /account:get
 * @param params.filter - filter string, e.g. {"email":"test@example.com","tenant_id":1}
 */
export declare const getAccountByEmail: (params: {
    filter: string;
}) => Promise<TeamMemberInfo>;
export interface FormRecordItem {
    [key: string]: any;
    form_record_id: number;
    form_id: number;
    main_field: string;
    status: string;
    created_at?: string | null;
    relation_record?: Array<FormRelationRecord>;
}
export interface FormRecordsQueryResult {
    list: FormRecordItem[];
    count: number;
    skip: number;
    size: number;
}
export interface FormRelationRecord {
    [key: string]: any;
    id: number;
    relation_type: string;
    relation_id: number;
    form_id: number;
    form_record_id: number;
    form_record: FormRecordItem;
}
export declare const getFormRecords: (params: {
    form_id: number;
    keyword?: string;
    skip?: number;
    num?: number;
    with_relation_record_by_type?: 0 | 1;
}) => Promise<FormRecordsQueryResult>;
export declare const getRelationRecords: (params: {
    relation_type: string;
    relation_id: number;
    form_id?: number | number[];
}) => Promise<FormRelationRecord[] | any>;
export declare const bindRelationRecord: (params: {
    relation_type: string;
    relation_id: number;
    form_id: number;
    form_record_id: number;
}) => Promise<FormRelationRecord | void>;
export declare const updateRelationRecord: (id: number, params: {
    form_record_id: number;
}) => Promise<FormRelationRecord | void>;
export declare const unbindRelationRecord: (id: number) => Promise<void>;
