UNPKG

wcz-layout

Version:

62 lines 1.8 kB
import { t as User } from "./User-1gKoYJvW.mjs"; import { permissions } from "virtual:wcz-layout"; import { ParsedLocation } from "@tanstack/react-router"; //#region src/lib/utils.d.ts declare const WISTRON_PRIMARY_COLOR = "#00506E"; declare const WISTRON_SECONDARY_COLOR = "#64DC00"; declare class Platform { static get isAndroid(): boolean; static get isIOS(): boolean; static get isWindows(): boolean; static get isMacOS(): boolean; private static get userAgent(); } interface RootRouteHeadOptions { manifest?: string; } declare const rootRouteHead: (options?: RootRouteHeadOptions) => { meta: ({ charSet: string; name?: undefined; content?: undefined; title?: undefined; } | { name: string; content: string; charSet?: undefined; title?: undefined; } | { title: string; charSet?: undefined; name?: undefined; content?: undefined; })[]; links: ({ rel: string; sizes: string; href: string; type?: undefined; } | { rel: string; type: string; sizes: string; href: string; } | { rel: string; href: string; sizes?: undefined; type?: undefined; })[]; }; declare const requirePermission: (permissionKey: keyof typeof permissions) => ({ location }: { location: ParsedLocation; }) => Promise<{ user: User; }>; type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label"; declare const hasPermission: (user: User | null | undefined, key: keyof typeof permissions) => boolean; //#endregion export { hasPermission as a, WISTRON_SECONDARY_COLOR as i, Platform as n, requirePermission as o, WISTRON_PRIMARY_COLOR as r, rootRouteHead as s, FormOmittedProps as t }; //# sourceMappingURL=utils-DMXHbqum.d.mts.map