import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type AuthorizationCodeGrantResponse = {
    /**
     * The value of the access token. This value will be added to the Authorization header of all Docusign API calls.
     */
    accessToken: string;
    /**
     * The type of token. For access tokens, the value of this will be Bearer.
     */
    tokenType: string;
    /**
     * The refresh token.
     */
    refreshToken: string;
    /**
     * The number of seconds until the access token expires.
     */
    expiresIn: number;
};
/** @internal */
export declare const AuthorizationCodeGrantResponse$inboundSchema: z.ZodType<AuthorizationCodeGrantResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type AuthorizationCodeGrantResponse$Outbound = {
    access_token: string;
    token_type: string;
    refresh_token: string;
    expires_in: number;
};
/** @internal */
export declare const AuthorizationCodeGrantResponse$outboundSchema: z.ZodType<AuthorizationCodeGrantResponse$Outbound, z.ZodTypeDef, AuthorizationCodeGrantResponse>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace AuthorizationCodeGrantResponse$ {
    /** @deprecated use `AuthorizationCodeGrantResponse$inboundSchema` instead. */
    const inboundSchema: z.ZodType<AuthorizationCodeGrantResponse, z.ZodTypeDef, unknown>;
    /** @deprecated use `AuthorizationCodeGrantResponse$outboundSchema` instead. */
    const outboundSchema: z.ZodType<AuthorizationCodeGrantResponse$Outbound, z.ZodTypeDef, AuthorizationCodeGrantResponse>;
    /** @deprecated use `AuthorizationCodeGrantResponse$Outbound` instead. */
    type Outbound = AuthorizationCodeGrantResponse$Outbound;
}
export declare function authorizationCodeGrantResponseToJSON(authorizationCodeGrantResponse: AuthorizationCodeGrantResponse): string;
export declare function authorizationCodeGrantResponseFromJSON(jsonString: string): SafeParseResult<AuthorizationCodeGrantResponse, SDKValidationError>;
//# sourceMappingURL=authorizationcodegrantresponse.d.ts.map