import { AddressDTO, AddressDraftDTO } from '@sentecacommerce/sdk';
import { QueryResult, MutationResultPair } from 'react-query';
declare type CompaniesApiType = {
    readonly useGet: (config?: {
        enabled?: boolean;
    }) => QueryResult<AddressDTO[], unknown>;
    readonly useGetById: (id: string) => QueryResult<AddressDTO, unknown>;
    readonly useAdd: (onSuccess?: () => void) => MutationResultPair<AddressDTO, unknown, AddressDraftDTO, unknown>;
    readonly useUpdate: (onSuccess?: () => void) => MutationResultPair<AddressDTO, unknown, {
        id: string;
        dto: AddressDraftDTO;
    }, unknown>;
    readonly useRemove: (onSuccess?: () => void) => MutationResultPair<AddressDTO, unknown, {
        id: string;
    }, unknown>;
    readonly cacheKeys: {
        useGet: string;
    };
};
export declare const CompaniesApiFactory: {
    getInstance: () => CompaniesApiType;
};
export declare const companiesApi: CompaniesApiType;
export {};
