export declare const codigosErros: { 400: string; 403: string; 500: string; 504: string; }; export interface tipoRespostaSucesso { codigo: 200; eErro: false; valor: T; erro: undefined; detalhes?: any[]; } export interface tipoRespostaErro { codigo: keyof typeof codigosErros; eErro: true; erro: string; valor: undefined; detalhes?: any[]; } export type tipoResposta = tipoRespostaSucesso | tipoRespostaErro; export declare class Resposta { funcaoErroInterno: (...opcoes: opcoesErroInterno) => void | Promise; detalhesErroInterno: boolean; constructor(funcaoErroInterno: (...arg1: opcoesErroInterno) => void | Promise, opcoes?: { detalhesErroInterno?: boolean; }); addResultado(resultado: T): tipoResposta; addSucesso(resultado: string): tipoResposta; addTrue(): tipoResposta; addErro(erro: string, codigo?: keyof typeof codigosErros): tipoRespostaErro; addErroEspera(erro?: string): tipoRespostaErro; addErroInterno(...opcoes: opcoesErroInterno): tipoRespostaErro; addPromise(promise: () => Promise | T, limiteEspera?: number): Promise>; } export declare const respostaCM: Resposta<[]>;