/** * Restricted local persistence for resumable OAuth device authorization. * * @experimental This API is unstable and may change without notice. */ import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import * as ServiceMap from "effect/Context"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Option from "effect/Option"; import * as Schema from "effect/Schema"; import { type AppError } from "../app-error/index.js"; export declare const PendingDeviceLoginSchema: Schema.Struct<{ readonly version: Schema.Literal<2>; readonly registryUrl: Schema.String; readonly deviceCode: Schema.String; readonly userCode: Schema.String; readonly verificationUri: Schema.String; readonly verificationUriComplete: Schema.String; readonly requestedScopes: Schema.$Array; readonly interval: Schema.Number; readonly expiresAt: Schema.decodeTo; }>; export type PendingDeviceLogin = typeof PendingDeviceLoginSchema.Type; export interface PendingDeviceLoginStoreService { readonly save: (pending: PendingDeviceLogin) => Effect.Effect; readonly load: () => Effect.Effect, AppError>; readonly clear: () => Effect.Effect; } declare const PendingDeviceLoginStore_base: ServiceMap.ServiceClass; export declare class PendingDeviceLoginStore extends PendingDeviceLoginStore_base { } export declare const PendingDeviceLoginStoreLive: Layer.Layer; export declare const PendingDeviceLoginStoreTest: (initial?: PendingDeviceLogin) => Layer.Layer; export {}; //# sourceMappingURL=pending-device-login-store.d.ts.map