import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AuthorizationCodeRequest, AuthorizationCodeRequest$Outbound } from "./authorizationcoderequest.js"; import { RefreshTokenRequest, RefreshTokenRequest$Outbound } from "./refreshtokenrequest.js"; export type TokenRequest = AuthorizationCodeRequest | RefreshTokenRequest; /** @internal */ export declare const TokenRequest$inboundSchema: z.ZodType; /** @internal */ export type TokenRequest$Outbound = AuthorizationCodeRequest$Outbound | RefreshTokenRequest$Outbound; /** @internal */ export declare const TokenRequest$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TokenRequest$ { /** @deprecated use `TokenRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TokenRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TokenRequest$Outbound` instead. */ type Outbound = TokenRequest$Outbound; } export declare function tokenRequestToJSON(tokenRequest: TokenRequest): string; export declare function tokenRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=tokenrequest.d.ts.map