import { SearchSchema } from "../search"; /** * E.g. * { * scopes: * { * scope: 'player', // no mutations except session allowed * contentId: 'x', // if omitted any content id accessible to the api client could be read * secure: 'true' // will not allow evaluate mode or any mode/role to be passed to models function that could return correct answers * } * } */ export interface Scopes { [key: string]: string; } /** * Get string value for a scope. */ export declare const getScopeVal: (scopes: Scopes, scopeKey: string) => string; /** * Get boolean value for a scope. */ export declare const getScopeBooleanVal: (scopes: Scopes, scopeKey: string) => boolean; /** * Get string value for a scope. Use dot ('.') notation for nested values. */ export declare const scopeExists: (scopes: Scopes, scopeKey: string) => Boolean; /** Info available after a successful authentication; should be passed down the chain */ export interface AuthInfo { id?: string; organizationId: string; issuedAt: number; expiresAt: number; admin: boolean; apiClientId: string; scopes?: Scopes; searchSchemas(): Promise; } //# sourceMappingURL=index.d.ts.map