import type * as Vite from 'vite'; import type { Devtools } from '@livestore/common'; import { UnknownError } from '@livestore/common'; import { Effect, Schema } from '@livestore/utils/effect'; declare const DevtoolsViteNotInstalledError_base: Schema.TaggedErrorClass; } & { cause: typeof Schema.Defect; }>; /** * Error thrown when @livestore/devtools-vite is not installed. * This is a peer dependency that must be installed separately. */ export declare class DevtoolsViteNotInstalledError extends DevtoolsViteNotInstalledError_base { get message(): string; } declare const ViteNotInstalledError_base: Schema.TaggedErrorClass; } & { cause: typeof Schema.Defect; }>; /** Error thrown when vite is not installed for the devtools server path. */ export declare class ViteNotInstalledError extends ViteNotInstalledError_base { get message(): string; } export type ViteDevtoolsOptions = { viteConfig?: (config: Vite.UserConfig) => Vite.UserConfig; /** * Path to the file exporting the LiveStore schema as `export const schema = ...` * File path must be relative to the project root and will be imported via Vite. * * Example: `./src/schema.ts` */ schemaPath: string | ReadonlyArray; /** * The mode of the devtools server. * * @default 'node' */ mode: Extract; }; export declare const makeViteMiddleware: (options: ViteDevtoolsOptions) => Effect.Effect; export {}; //# sourceMappingURL=vite-dev-server.d.ts.map