export type setData<p = any> = (d: p) => void;
export declare class ConexionBase {
    clase: string;
    state: string;
    init: boolean;
    getCache: (url: string, setData: setData<any>) => void;
    setCache: (path: string, data: any) => void;
    getProxi: (path: string) => Promise<any>;
    getProxiCache: (path: string, setData: setData<any>, setError?: setData<any> | undefined) => Promise<void>;
    get: (url: string, setData: setData<any>, setError?: setData<any> | undefined) => Promise<void>;
    postProxi: (path?: string, obj?: {}, success?: (d: any) => void, error?: (d: any) => void) => void;
    post: (url?: string, obj?: any, success?: (d: any) => void, error?: (d: any) => void) => void;
    FormDataFotmat: (o: any) => FormData;
}
export declare class ConexionCompleta<P = any, L = any> extends ConexionBase {
    cambios: (setData: setData<L[]>, setNot?: () => void) => void;
    lista: (setData: setData<L[]>) => Promise<void>;
    detalle: (codigo: string | number, setData: setData<P>) => Promise<void>;
    cancelar: (codigo: string | number, setData?: setData<P> | undefined) => Promise<void>;
    nuevo: (data: P, setData?: setData<P> | undefined, setError?: setData<any> | undefined) => void;
    actualizar: (codigo: string | number, data: P, setData?: setData<P> | undefined, setError?: setData<any> | undefined) => void;
}
export declare class ConexionAvanzada<P = any, L = any> extends ConexionCompleta<P, L> {
    cambiosData: (data: keyof L, setData: setData<L[]>, setNot?: setData<any> | undefined) => void;
    listaData: (data: keyof L, setData: setData<L[]>, setNot?: setData<any> | undefined) => void;
    detalleData: (codigo: string | number, data: (keyof P)[], setData: setData<P>, setNot?: setData<any> | undefined) => void;
}
declare class Commos extends ConexionBase {
    clase: string;
    tags: (setData: setData<any>) => Promise<void>;
}
export declare function conCommos(): Commos;
export declare function setCambio(data: any[], c: any[]): any[];
export {};
