/** * Anonymous Auth Adapter * * No-op authentication adapter for local/development use. * Allows all connections and channel subscriptions. */ import type { StreamAuthResult, StreamChannel } from '@plyaz/types/core'; import { BaseAuthAdapter } from '../BaseAuthAdapter'; /** * AnonymousAuthAdapter - Allows all connections without authentication * * Use cases: * - Local development * - Internal services without auth requirements * - Testing environments * * @example * ```ts * const authAdapter = new AnonymousAuthAdapter(); * * // Always returns authenticated: true * const result = await authAdapter.authenticate(request); * console.log(result.authenticated); // true * * // Always allows subscription * const canSub = authAdapter.canSubscribe(undefined, 'uploads'); * console.log(canSub); // true * ``` */ export declare class AnonymousAuthAdapter extends BaseAuthAdapter { constructor(); /** * Authenticate request (always succeeds) * * @returns Always returns { authenticated: true } */ authenticate(): Promise; /** * Check subscription permission (always allowed) * * @returns Always returns true */ canSubscribe(_userId: string | undefined, _channel: StreamChannel, _scopes?: string[]): boolean; } //# sourceMappingURL=AnonymousAuthAdapter.d.ts.map