/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import type { User } from './User';
import type { OAuth2Provider } from './OAuth2Provider';
/**
 * Serializer for BaseGrantModel and RefreshToken
 * @export
 * @interface TokenModel
 */
export interface TokenModel {
    /**
     *
     * @type {number}
     * @memberof TokenModel
     */
    readonly pk: number;
    /**
     *
     * @type {OAuth2Provider}
     * @memberof TokenModel
     */
    provider: OAuth2Provider;
    /**
     *
     * @type {User}
     * @memberof TokenModel
     */
    user: User;
    /**
     * Check if token is expired yet.
     * @type {boolean}
     * @memberof TokenModel
     */
    readonly isExpired: boolean;
    /**
     *
     * @type {Date}
     * @memberof TokenModel
     */
    expires?: Date | null;
    /**
     *
     * @type {Array<string>}
     * @memberof TokenModel
     */
    scope: Array<string>;
    /**
     * Get the token's id_token as JSON String
     * @type {string}
     * @memberof TokenModel
     */
    readonly idToken: string;
    /**
     *
     * @type {boolean}
     * @memberof TokenModel
     */
    revoked?: boolean;
}
/**
 * Check if a given object implements the TokenModel interface.
 */
export declare function instanceOfTokenModel(value: object): value is TokenModel;
export declare function TokenModelFromJSON(json: any): TokenModel;
export declare function TokenModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenModel;
export declare function TokenModelToJSON(json: any): TokenModel;
export declare function TokenModelToJSONTyped(value?: Omit<TokenModel, 'pk' | 'is_expired' | 'id_token'> | null, ignoreDiscriminator?: boolean): any;
//# sourceMappingURL=TokenModel.d.ts.map