import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import type { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors";
import { Attribute } from "./attribute";
export declare const protobufPackage = "io.restorecommerce.auth";
/** Subject of creating User */
export interface Subject {
    /** user id */
    id?: string | undefined;
    /** target scope (ID of the target scoping entity) */
    scope?: string | undefined;
    /** for unauthenticated context */
    unauthenticated?: boolean | undefined;
    token?: string | undefined;
}
export interface Tokens {
    /** token name */
    name?: string | undefined;
    /** expiration date for token */
    expiresIn?: Date | undefined;
    /** token */
    token?: string | undefined;
    /** identifier for role_association */
    scopes?: string[] | undefined;
    /** type of token eg: access_token, refresh_token */
    type?: string | undefined;
    interactive?: boolean | undefined;
    lastUse?: Date | undefined;
    clientId?: string | undefined;
    /** ID of the impersonator */
    impersonatedBy?: string | undefined;
    createdAt?: Date | undefined;
}
export interface HierarchicalScope {
    /** root node */
    id?: string | undefined;
    /** children nodes */
    children?: HierarchicalScope[] | undefined;
    /** role identifier associated with root node scope */
    role?: string | undefined;
}
export interface RoleAssociation {
    /** role ID */
    role?: string | undefined;
    /** useful attributes for RBAC/ABAC like organizational scope */
    attributes?: Attribute[] | undefined;
    /** identifier for role_association */
    id?: string | undefined;
    /** timestamp when the role was created */
    created?: Date | undefined;
}
export interface HierarchicalScopesRequest {
    token?: string | undefined;
}
export interface HierarchicalScopesResponse {
    subjectId?: string | undefined;
    hierarchicalScopes?: HierarchicalScope[] | undefined;
    token?: string | undefined;
}
export declare const Subject: MessageFns<Subject>;
export declare const Tokens: MessageFns<Tokens>;
export declare const HierarchicalScope: MessageFns<HierarchicalScope>;
export declare const RoleAssociation: MessageFns<RoleAssociation>;
export declare const HierarchicalScopesRequest: MessageFns<HierarchicalScopesRequest>;
export declare const HierarchicalScopesResponse: MessageFns<HierarchicalScopesResponse>;
type ProtoMetaMessageOptions = {
    options?: {
        [key: string]: any;
    };
    fields?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    oneof?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    nested?: {
        [key: string]: ProtoMetaMessageOptions;
    };
};
export interface ProtoMetadata {
    fileDescriptor: FileDescriptorProto1;
    references: {
        [key: string]: any;
    };
    dependencies?: ProtoMetadata[];
    options?: {
        options?: {
            [key: string]: any;
        };
        services?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                methods?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
        messages?: {
            [key: string]: ProtoMetaMessageOptions;
        };
        enums?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                values?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
    };
}
export declare const protoMetadata: ProtoMetadata;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
export interface MessageFns<T> {
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    decode(input: BinaryReader | Uint8Array, length?: number): T;
    fromJSON(object: any): T;
    toJSON(message: T): unknown;
    create(base?: DeepPartial<T>): T;
    fromPartial(object: DeepPartial<T>): T;
}
export {};
//# sourceMappingURL=auth.d.ts.map