import { Bearer, Receiver, Token } from '../token.js'; import { custom, customJson } from '../util/logging.js'; /** Reports that a token environment variable is empty. */ export declare class NoTokenInEnvError extends Error { } /** * Provides one fixed access token. * * This bearer does not renew the token and does not retry authentication. * Prefer a renewable credential source for long-running applications. * * @example * ```ts * import { SDK } from '@nebius/js-sdk'; * import { StaticBearer } from '@nebius/js-sdk/runtime/token/static'; * * const sdk = new SDK({ * credentials: new StaticBearer(process.env.NEBIUS_TOKEN ?? ''), * userAgentPrefix: 'example-application/1.0', * }); * ``` */ export declare class StaticBearer extends Bearer { [custom]: () => string; /** Contains the fully qualified runtime type name. */ readonly $type: string; private _tok; /** Creates a bearer for a non-empty token string or {@link Token}. */ constructor(token: Token | string); /** Returns a JSON-safe value for logs. */ [customJson](): unknown; /** Creates a token receiver. */ receiver(): Receiver; } /** * Reads one fixed access token from an environment variable. * * The constructor reads the variable immediately. It throws * {@link NoTokenInEnvError} when the variable is missing or empty. */ export declare class EnvBearer extends StaticBearer { /** Contains the fully qualified runtime type name. */ readonly $type = "nebius.sdk.EnvBearer"; /** Reads the token from `envVarName`, which defaults to `NEBIUS_TOKEN`. */ constructor(envVarName?: string); } //# sourceMappingURL=static.d.ts.map