import { type ManagedAppToken } from '@astrojs/studio'; import type { AstroConfig, AstroIntegration } from 'astro'; import './types.js'; export type VitePlugin = Required['plugins'][number]; export declare function getAstroEnv(envMode?: string): Record<`ASTRO_${string}`, string>; export type RemoteDatabaseInfo = { type: 'libsql' | 'studio'; url: string; }; export declare function getRemoteDatabaseInfo(): RemoteDatabaseInfo; export declare function getManagedRemoteToken(token?: string, dbInfo?: RemoteDatabaseInfo): Promise; export declare function getDbDirectoryUrl(root: URL | string): URL; export declare function defineDbIntegration(integration: AstroIntegration): AstroIntegration; export type Result = { success: true; data: T; } | { success: false; data: unknown; }; /** * Map an object's values to a new set of values * while preserving types. */ export declare function mapObject(item: Record, callback: (key: string, value: T) => U): Record;