/** * Low-level Effect wrappers for Location and its usage via Context. * @since 8.19.0 */ import * as Context from "@typed/context"; import * as Effect from "effect/Effect"; import { type Option } from "effect/Option"; import { GlobalThis } from "./GlobalThis.js"; /** * A Context for the Navigator API * @since 8.19.0 * @category models */ export interface Navigator extends globalThis.Navigator { } /** * A Context for the Navigator API * @since 8.19.0 * @category context */ export declare const Navigator: Context.Tagged; /** * Check to see if the current navigator can share * @since 8.19.0 * @category actions */ export declare const canShare: (shareData?: ShareData) => Effect.Effect; /** * Share data with the current navigator * @since 8.19.0 * @category actions */ export declare const share: (shareData: ShareData) => Effect.Effect; /** * Read text from the clipboard * @since 8.19.0 * @category getters */ export declare const readClipboardText: Effect.Effect; /** * Write text from the clipboard * @since 8.19.0 * @category actions */ export declare const writeClipboardText: (text: string) => Effect.Effect; /** * Read from the clipboard * @since 8.19.0 * @category getters */ export declare const readClipboard: Effect.Effect; /** * Create a new ClipboardItem * @since 8.19.0 * @category constructors */ export declare const makeClipoboardItem: (items: Record>, options?: ClipboardItemOptions | undefined) => Effect.Effect; /** * Write clipboard items * @since 8.19.0 * @category actions */ export declare const writeClipboard: (items: ClipboardItems) => Effect.Effect; /** * Check to see if the current navigator can utilize cookies * @since 8.19.0 * @category getters */ export declare const checkCookieEnabled: Effect.Effect; /** * Check to see if the current navigator concurrency * @since 8.19.0 * @category getters */ export declare const getHardwareConcurrency: Effect.Effect; /** * Check to see if the current navigator's max touch points * @since 8.19.0 * @category getters */ export declare const getMaxTouchPoints: Effect.Effect; /** * Check to see if the current navigator has any media devices * @since 8.19.0 * @category getters */ export declare const getMediaDevices: Effect.Effect; /** * Check to see if the current navigator has any media sessions * @since 8.19.0 * @category getters */ export declare const getMediaSession: Effect.Effect; /** * Check to see if the current navigator is online * @since 8.19.0 * @category getters */ export declare const checkOnline: Effect.Effect; /** * Check to see if the current navigator has a PDF viewer * @since 8.19.0 * @category getters */ export declare const checkPdfViewerEnabled: Effect.Effect; /** * Get the current navigator's user agent * @since 8.19.0 * @category getters */ export declare const getUserAgent: Effect.Effect; /** * Create a new Credential * @since 8.19.0 * @category constructors */ export declare const createCredential: (options?: CredentialCreationOptions) => Effect.Effect, never, Navigator>; /** * Get a Credential * @since 8.19.0 * @category getters */ export declare const getCredential: (options?: CredentialRequestOptions) => Effect.Effect, never, Navigator>; /** * Store a Credential * @since 8.19.0 * @category actions */ export declare const storeCredential: (credential: Credential) => Effect.Effect; /** * Get the current navigator's geolocation * @since 8.19.0 * @category getters */ export declare const getCurrentPosition: (options?: PositionOptions) => Effect.Effect; //# sourceMappingURL=Navigator.d.ts.map