14 lines
526 B
TypeScript
14 lines
526 B
TypeScript
import type { tipoResposta } from "p-respostas";
|
|
type tipoPostValidarTokem = {
|
|
token: string;
|
|
};
|
|
import type { z } from "zod";
|
|
import type { zAmbiente } from "../ts/ambiente";
|
|
/** faz a validação do token */
|
|
export declare const validarToken: ({ ambiente, post, buscar, }: {
|
|
ambiente: z.infer<typeof zAmbiente>;
|
|
post: tipoPostValidarTokem;
|
|
/** função que conecta com a API */
|
|
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
|
}) => Promise<"valido" | "erro">;
|
|
export {};
|