@donotdev/core 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +25 -112
- package/index.js +5 -5
- package/next/index.js +28 -28
- package/package.json +2 -2
- package/server.d.ts +17 -100
- package/server.js +1 -1
- package/symbol-index.json +1 -1
- package/vite/index.js +34 -34
package/symbol-index.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"HomePage":"export function HomePage() {\n * return <PageContainer>...</PageContainer>;\n * }","meta":"export const meta: PageMeta = {\n * route: '/blog/:slug' // Creates /blog/:slug\n * }","functionsConfig":"export const functionsConfig: FunctionsConfig = {\n * defaults: {\n * region: ['europe-west1'],\n * platform: 'gcfv2',\n * labels: { app: 'myapp' },\n * },\n * functions: {\n * setCustomClaims: { category: 'auth' },\n * getDashboardMetrics: { category: 'analytics', memory: '512MB' },\n * },\n * crud: {\n * entities: ['car', 'customer', 'inquiry'],\n * },\n * }","legalConfig":"export const legalConfig: LegalConfig = {\n * company: {\n * name: 'ACME Corporation',\n * legalStatus: 'LLC',\n * registrationNumber: '123456789',\n * vatNumber: 'US123456789',\n * },\n * contact: {\n * address: '123 Main St, City, State 12345, Country',\n * email: 'legal@acme.com',\n * supportEmail: 'support@acme.com',\n * privacyEmail: 'privacy@acme.com',\n * dpoEmail: 'dpo@acme.com',\n * },\n * director: {\n * name: 'John Doe',\n * role: 'CEO',\n * },\n * hosting: {\n * provider: 'Firebase Hosting by Google',\n * contact: 'https://firebase.google.com/support',\n * },\n * jurisdiction: {\n * country: 'United States',\n * },\n * website: {\n * url: 'https://acme.com',\n * },\n * }","getFieldRegistry":"export function getFieldRegistry(): FieldRegistry {\n * return getGlobalSingleton('field-registry', () => new FieldRegistry());\n * }","productEntity":"export const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * },\n * // Customize technical field (optional)\n * createdAt: {\n * editable: 'admin',\n * label: 'Created Date'\n * }\n * },\n * // Override access defaults (optional)\n * access: { create: 'guest' } // Public inquiry form\n * }","QueryClientProvider":"/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }","useQueryClient":"/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n}","AGGREGATE_FILTER_OPERATORS":"/** Filter operators for aggregation (subset of CRUD_OPERATORS) */\ndeclare const AGGREGATE_FILTER_OPERATORS: {\n readonly EQ: \"==\";\n readonly NEQ: \"!=\";\n readonly LT: \"<\";\n readonly LTE: \"<=\";\n readonly GT: \">\";\n readonly GTE: \">=\";\n}","AGGREGATE_OPERATIONS":"/** Supported aggregation operations */\ndeclare const AGGREGATE_OPERATIONS: {\n readonly COUNT: \"count\";\n readonly SUM: \"sum\";\n readonly AVG: \"avg\";\n readonly MIN: \"min\";\n readonly MAX: \"max\";\n}","AIChatRequestSchema":"/** Schema for AI chat request (client → server) */\ndeclare const AIChatRequestSchema: v.ObjectSchema<{\n readonly messages: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>, undefined>, v.MinLengthAction<{\n role: \"user\" | \"assistant\" | \"system\";\n content: string;\n id?: string | undefined;\n createdAt?: string | undefined;\n }[], 1, undefined>]>;\n readonly provider: v.OptionalSchema<v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>, undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly stream: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tools: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n }, undefined>, undefined>, undefined>;\n}","AIChatResponseSchema":"/** Schema for AI chat response (server → client, non-streaming) */\ndeclare const AIChatResponseSchema: v.ObjectSchema<{\n readonly message: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly usage: v.OptionalSchema<v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n }, undefined>, undefined>;\n readonly finishReason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly toolCalls: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n}","AIMessageSchema":"/** Schema for a single AI message */\ndeclare const AIMessageSchema: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","AIProviderConfigSchema":"/** Schema for AI provider configuration (consumer's _shared/aiConfig.ts) */\ndeclare const AIProviderConfigSchema: v.ObjectSchema<{\n readonly provider: v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","AIToolCallSchema":"/** Schema for a tool call result */\ndeclare const AIToolCallSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n}","AIToolDefinitionSchema":"/** Schema for an AI tool definition */\ndeclare const AIToolDefinitionSchema: v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n}","AIUsageSchema":"/** Schema for AI token usage */\ndeclare const AIUsageSchema: v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n}","AI_ERROR_CODES":"/** AI error codes */\ndeclare const AI_ERROR_CODES: {\n readonly UNKNOWN: \"unknown\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly INVALID_API_KEY: \"invalid_api_key\";\n readonly RATE_LIMIT_EXCEEDED: \"rate_limit_exceeded\";\n readonly PROVIDER_ERROR: \"provider_error\";\n readonly TOKEN_LIMIT_EXCEEDED: \"token_limit_exceeded\";\n readonly STREAM_INTERRUPTED: \"stream_interrupted\";\n}","AI_MODELS":"/** Default models per provider */\ndeclare const AI_MODELS: {\n readonly anthropic: {\n readonly default: \"claude-sonnet-4-6\";\n readonly models: readonly [\"claude-sonnet-4-6\", \"claude-sonnet-4-20250514\", \"claude-haiku-4-5-20251001\", \"claude-opus-4-6\", \"claude-opus-4-20250514\"];\n };\n readonly openai: {\n readonly default: \"gpt-4o\";\n readonly models: readonly [\"gpt-4o\", \"gpt-4o-mini\", \"gpt-4.1\", \"gpt-4.1-mini\", \"o3-mini\"];\n };\n readonly google: {\n readonly default: \"gemini-2.0-flash\";\n readonly models: readonly [\"gemini-2.0-flash\", \"gemini-2.5-pro\", \"gemini-2.5-flash\"];\n };\n}","AI_PROVIDERS":"/** Supported AI providers */\ndeclare const AI_PROVIDERS: {\n readonly ANTHROPIC: \"anthropic\";\n readonly OPENAI: \"openai\";\n readonly GOOGLE: \"google\";\n}","AI_ROLES":"/** Message roles */\ndeclare const AI_ROLES: {\n readonly USER: \"user\";\n readonly ASSISTANT: \"assistant\";\n readonly SYSTEM: \"system\";\n}","AI_TIERS":"/** AI model tiers - SSOT for tier-based model resolution */\ndeclare const AI_TIERS: {\n readonly FAST: {\n readonly id: \"fast\";\n readonly defaultModel: \"claude-haiku-4-5-20251001\";\n };\n readonly STANDARD: {\n readonly id: \"standard\";\n readonly defaultModel: \"claude-sonnet-4-6\";\n };\n readonly PREMIUM: {\n readonly id: \"premium\";\n readonly defaultModel: \"claude-opus-4-6\";\n };\n}","AI_TOKEN_PRICING":"/**\n * Token pricing per model (USD per 1M tokens).\n * SSOT - imported by both client (cost display) and server (cost recording).\n */\ndeclare const AI_TOKEN_PRICING: Record<string, {\n promptPer1M: number;\n completionPer1M: number;\n currency: 'usd';\n}","AUTH_EVENTS":"/**\n * Authentication event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_EVENTS: {\n readonly AUTH_STATE_CHANGED: \"auth.state.changed\";\n readonly USER_SIGNED_IN: \"auth.user.signed_in\";\n readonly USER_SIGNED_OUT: \"auth.user.signed_out\";\n readonly USER_UPDATED: \"auth.user.updated\";\n readonly TOKEN_REFRESHED: \"auth.token.refreshed\";\n readonly SUBSCRIPTION_UPDATED: \"auth.subscription.updated\";\n readonly SUBSCRIPTION_CHANGED: \"auth.subscription.changed\";\n readonly SUBSCRIPTION_CANCELLED: \"auth.subscription.cancelled\";\n readonly SUBSCRIPTION_EXPIRED: \"auth.subscription.expired\";\n readonly PERMISSIONS_UPDATED: \"auth.permissions.updated\";\n readonly ACCOUNT_LINKED: \"auth.account.linked\";\n readonly ACCOUNT_UNLINKED: \"auth.account.unlinked\";\n readonly ACCOUNT_LINKING_REQUIRED: \"auth.account.linking_required\";\n readonly AUTH_SUCCESS: \"auth.success\";\n readonly EMAIL_VERIFICATION_SENT: \"auth.email.verification_sent\";\n readonly PASSWORD_RESET_SENT: \"auth.password.reset_sent\";\n readonly AUTH_ERROR: \"auth.error\";\n}","AUTH_PARTNERS":"/**\n * Authentication partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_PARTNERS: {\n readonly apple: {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n };\n readonly discord: {\n readonly name: \"Discord\";\n readonly color: \"#5865F2\";\n readonly icon: \"discord\";\n readonly type: \"both\";\n readonly scopes: readonly [\"identify\", \"email\"];\n readonly firebaseProviderId: \"discord.com\";\n readonly customParameters: {\n readonly prompt: \"consent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.discord\";\n };\n };\n readonly emailLink: {\n readonly name: \"Email Link\";\n readonly color: \"#10B981\";\n readonly icon: \"emailLink\";\n readonly type: \"auth\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"emailLink\";\n readonly customParameters: {};\n readonly button: {\n readonly backgroundColor: \"#10B981\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#10B981\";\n readonly hoverBackgroundColor: \"#059669\";\n readonly focusOutlineColor: \"#059669\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.emailLink\";\n };\n };\n readonly facebook: {\n readonly name: \"Facebook\";\n readonly color: \"#1877F2\";\n readonly icon: \"facebook\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"public_profile\"];\n readonly firebaseProviderId: \"facebook.com\";\n readonly customParameters: {\n readonly auth_type: \"reauthenticate\";\n };\n readonly button: {\n readonly backgroundColor: \"#1877F2\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#1877F2\";\n readonly hoverBackgroundColor: \"#166FE5\";\n readonly focusOutlineColor: \"#166FE5\";\n readonly fontWeight: \"600\";\n readonly textKey: \"buttons.facebook\";\n };\n };\n readonly github: {\n readonly name: \"GitHub\";\n readonly color: \"#24292E\";\n readonly icon: \"github\";\n readonly type: \"both\";\n readonly scopes: readonly [\"read:user\", \"user:email\"];\n readonly firebaseProviderId: \"github.com\";\n readonly customParameters: {\n readonly allow_signup: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.github\";\n };\n };\n readonly google: {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"profile\"];\n readonly firebaseProviderId: \"google.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.google\";\n };\n };\n readonly linkedin: {\n readonly name: \"LinkedIn\";\n readonly color: \"#0077B5\";\n readonly icon: \"linkedin\";\n readonly type: \"both\";\n readonly scopes: readonly [\"r_liteprofile\", \"r_emailaddress\"];\n readonly firebaseProviderId: \"linkedin.com\";\n readonly customParameters: {\n readonly prompt: \"consent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.linkedin\";\n };\n };\n readonly microsoft: {\n readonly name: \"Microsoft\";\n readonly color: \"#00A4EF\";\n readonly icon: \"microsoft\";\n readonly type: \"both\";\n readonly scopes: readonly [\"openid\", \"email\", \"profile\"];\n readonly firebaseProviderId: \"microsoft.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.microsoft\";\n };\n };\n readonly password: {\n readonly name: \"Email & Password\";\n readonly color: \"#6B7280\";\n readonly icon: \"password\";\n readonly type: \"auth\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"password\";\n readonly customParameters: {};\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#374151\";\n readonly borderColor: \"#D1D5DB\";\n readonly hoverBackgroundColor: \"#F9FAFB\";\n readonly focusOutlineColor: \"#3B82F6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.password\";\n };\n };\n readonly reddit: {\n readonly name: \"Reddit\";\n readonly color: \"#FF4500\";\n readonly icon: \"reddit\";\n readonly type: \"both\";\n readonly scopes: readonly [\"identity\"];\n readonly firebaseProviderId: \"reddit.com\";\n readonly customParameters: {\n readonly duration: \"permanent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.reddit\";\n };\n };\n readonly spotify: {\n readonly name: \"Spotify\";\n readonly color: \"#1DB954\";\n readonly icon: \"spotify\";\n readonly type: \"both\";\n readonly scopes: readonly [\"user-read-email\", \"user-read-private\"];\n readonly firebaseProviderId: \"spotify.com\";\n readonly customParameters: {\n readonly show_dialog: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.spotify\";\n };\n };\n readonly twitch: {\n readonly name: \"Twitch\";\n readonly color: \"#9146FF\";\n readonly icon: \"twitch\";\n readonly type: \"both\";\n readonly scopes: readonly [\"user:read:email\"];\n readonly firebaseProviderId: \"twitch.tv\";\n readonly customParameters: {\n readonly force_verify: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.twitch\";\n };\n };\n readonly twitter: {\n readonly name: \"X\";\n readonly color: \"#000000\";\n readonly icon: \"twitter\";\n readonly type: \"both\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"twitter.com\";\n readonly customParameters: {\n readonly force_login: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.twitter\";\n };\n };\n readonly yahoo: {\n readonly name: \"Yahoo\";\n readonly color: \"#5F01D1\";\n readonly icon: \"yahoo\";\n readonly type: \"both\";\n readonly scopes: readonly [\"openid\", \"email\", \"profile\"];\n readonly firebaseProviderId: \"yahoo.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.yahoo\";\n };\n };\n}","AUTH_PARTNER_STATE":"/**\n * Partner state constants - Single source of truth for partner states\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_PARTNER_STATE: {\n readonly IDLE: \"idle\";\n readonly LOADING: \"loading\";\n readonly ERROR: \"error\";\n readonly AUTHENTICATED: \"authenticated\";\n}","AuthUserSchema":"/**\n * Schema for authenticated user data\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AuthUserSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","BILLING_EVENTS":"/**\n * Billing event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BILLING_EVENTS: {\n readonly BILLING_INITIALIZED: \"billing.initialized\";\n readonly BILLING_ERROR: \"billing.error\";\n readonly CHECKOUT_SESSION_CREATED: \"billing.checkout_session.created\";\n readonly CHECKOUT_SESSION_FAILED: \"billing.checkout_session.failed\";\n readonly SUBSCRIPTION_CREATED: \"billing.subscription.created\";\n readonly SUBSCRIPTION_UPDATED: \"billing.subscription.updated\";\n readonly SUBSCRIPTION_CANCELLED: \"billing.subscription.cancelled\";\n readonly SUBSCRIPTION_RENEWED: \"billing.subscription.renewed\";\n readonly SUBSCRIPTION_EXPIRED: \"billing.subscription.expired\";\n readonly SUBSCRIPTION_TRIAL_ENDED: \"billing.subscription.trial_ended\";\n readonly PAYMENT_SUCCEEDED: \"billing.payment.succeeded\";\n readonly PAYMENT_FAILED: \"billing.payment.failed\";\n readonly PAYMENT_REFUNDED: \"billing.payment.refunded\";\n readonly PAYMENT_METHOD_ADDED: \"billing.payment_method.added\";\n readonly PAYMENT_METHOD_UPDATED: \"billing.payment_method.updated\";\n readonly PAYMENT_METHOD_REMOVED: \"billing.payment_method.removed\";\n readonly PAYMENT_METHOD_DEFAULT_CHANGED: \"billing.payment_method.default_changed\";\n readonly INVOICE_CREATED: \"billing.invoice.created\";\n readonly INVOICE_UPDATED: \"billing.invoice.updated\";\n readonly INVOICE_PAID: \"billing.invoice.paid\";\n readonly INVOICE_FAILED: \"billing.invoice.failed\";\n readonly WEBHOOK_RECEIVED: \"billing.webhook.received\";\n readonly WEBHOOK_PROCESSED: \"billing.webhook.processed\";\n readonly WEBHOOK_ERROR: \"billing.webhook.error\";\n}","BREAKPOINT_RANGES":"/**\n * Breakpoint pixel ranges\n *\n * Defines the pixel ranges for each breakpoint to help with\n * responsive design calculations and media queries.\n * These ranges match the CSS media queries and store logic.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BREAKPOINT_RANGES: Record<Breakpoint, {\n min: number;\n max: number;\n}","BREAKPOINT_THRESHOLDS":"/**\n * Breakpoint threshold values for calculation\n *\n * These are the actual breakpoint boundaries used for responsive logic.\n * Each value represents the minimum width for that breakpoint.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BREAKPOINT_THRESHOLDS: {\n readonly mobile: 0;\n readonly tablet: 768;\n readonly laptop: 1024;\n readonly desktop: 1440;\n}","BulkAcrossCycleError":"/**\n * Thrown by {@link bulkAcross} before any side effect when `dependsOn`\n * relationships form a cycle. The `cycle` array lists the collection names\n * that form the circular dependency chain.\n *\n * @example\n * try {\n * await crud.bulkAcross([\n * { collection: 'a', dependsOn: ['b'], ... },\n * { collection: 'b', dependsOn: ['a'], ... },\n * ]);\n * } catch (err) {\n * if (err instanceof BulkAcrossCycleError) {\n * console.error(err.cycle); // ['a', 'b']\n * }\n * }\n *\n * @version 0.1.0\n * @since 0.3.0\n */\ndeclare class BulkAcrossCycleError extends Error {\n /** Collection names that form the cycle. */\n readonly cycle: string[];\n constructor(cycle: string[]);\n}","BulkCollisionError":"/**\n * Thrown when a {@link BulkOperations} payload contains the same id in two\n * mutually-exclusive buckets. The service rejects these up-front, before any\n * write is attempted, so partial state is impossible.\n *\n * @example\n * try {\n * await crud.bulk({\n * updates: [{ id: 'a', patch: {} }],\n * deletes: ['a'],\n * });\n * } catch (err) {\n * if (err instanceof BulkCollisionError) {\n * // err.collidingIds === ['a']\n * // err.where === 'updates-deletes'\n * }\n * }\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ndeclare class BulkCollisionError extends Error {\n /** IDs that appear in both buckets. Preserves the order they were detected. */\n readonly collidingIds: string[];\n /** Which two buckets collided. */\n readonly where: 'updates-deletes' | 'inserts-updates';\n /**\n * @param collidingIds - IDs present in both buckets.\n * @param where - The pair of buckets that produced the collision.\n */\n constructor(collidingIds: string[], where: 'updates-deletes' | 'inserts-updates');\n}","BulkNotImplementedError":"/**\n * Thrown by an adapter whose `bulk()` method has not yet been implemented.\n * Lets the interface stay required across all providers while individual\n * adapters can land their implementation incrementally.\n *\n * @example\n * // Inside an adapter stub:\n * async bulk() {\n * throw new BulkNotImplementedError('restcrud');\n * }\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ndeclare class BulkNotImplementedError extends Error {\n /** Adapter identifier (e.g. `'firebase-firestore'`, `'supabase'`). */\n readonly adapterName: string;\n /**\n * @param adapterName - Name of the adapter that has not implemented `bulk()`.\n */\n constructor(adapterName: string);\n}","COMMON_TIER_CONFIGS":"/**\n * Common tier configurations that apps can use as a starting point\n * Apps can extend this or create their own completely custom configs\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const COMMON_TIER_CONFIGS: {\n free: {\n features: string[];\n level: number;\n };\n pro: {\n features: string[];\n level: number;\n };\n ai: {\n features: string[];\n level: number;\n };\n}","CONFIDENCE_LEVELS":"/**\n * Platform detection confidence thresholds\n * @constant\n */\ndeclare const CONFIDENCE_LEVELS: {\n readonly HIGH: 0.95;\n readonly MEDIUM: 0.8;\n readonly LOW: 0.7;\n readonly MINIMUM: 0.3;\n}","CONSENT_CATEGORY":"/**\n * Consent category constants - DRY single source of truth\n * Use these instead of hardcoded strings throughout the codebase\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CONSENT_CATEGORY: {\n readonly NECESSARY: \"necessary\";\n readonly FUNCTIONAL: \"functional\";\n readonly ANALYTICS: \"analytics\";\n readonly MARKETING: \"marketing\";\n}","CONTEXTS":"/**\n * Supported execution contexts\n * @constant\n */\ndeclare const CONTEXTS: {\n readonly CLIENT: \"client\";\n readonly SERVER: \"server\";\n readonly BUILD: \"build\";\n}","CRUD_OPERATORS":"/**\n * Supported filter operators for query where clauses.\n * Use these in framework code for consistency. Consumers can use string literals\n * (e.g. operator: 'in') — CrudOperator accepts them; no need to import CRUD_OPERATORS.\n */\ndeclare const CRUD_OPERATORS: {\n readonly EQ: \"==\";\n readonly NEQ: \"!=\";\n readonly LT: \"<\";\n readonly LTE: \"<=\";\n readonly GT: \">\";\n readonly GTE: \">=\";\n readonly IN: \"in\";\n readonly NOT_IN: \"not-in\";\n readonly ARRAY_CONTAINS: \"array-contains\";\n readonly ARRAY_CONTAINS_ANY: \"array-contains-any\";\n}","CheckoutLineItemInputSchema":"/**\n * One requested line: what the client wants, never what it costs.\n * Names and prices are resolved on the server.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const CheckoutLineItemInputSchema: v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n}","CheckoutSessionMetadataSchema":"/**\n * Schema for Stripe checkout session metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CheckoutSessionMetadataSchema: v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","CreateCheckoutSessionRequestSchema":"/**\n * Schema for creating a checkout session request.\n * The client sends what it wants (config key + line items); the server derives\n * prices, mode and user from the back config and the auth context.\n *\n * 0.1.x requests keep working unchanged: the key may come from\n * `metadata.billingConfigKey`, `lineItems` defaults to the single product, and\n * the 0.1.x fields (`priceId`, `unitAmount` + `productName`, `currency`, `mode`)\n * are kept and honoured for StripePayment/StripeSubscription items exactly as in\n * 0.1.x (priceId checked against the back config, dynamic amounts capped by\n * `maxUnitAmount`). StripeOrder ignores them. `userId` is never trusted by the\n * framework providers: they pass the authenticated user.\n * The output is always normalized (`billingConfigKey` + `lineItems` set).\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n}","CreateCheckoutSessionResponseSchema":"/**\n * Schema for creating a checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CreateCheckoutSessionResponseSchema: v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","CustomClaimsSchema":"/**\n * Schema for Firebase Auth custom claims\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CustomClaimsSchema: v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n}","DEFAULT_AI_CONFIG":"/** Default AI configuration */\ndeclare const DEFAULT_AI_CONFIG: {\n readonly maxTokens: 4096;\n readonly temperature: 0.7;\n readonly stream: true;\n}","DEFAULT_AI_MARKUP":"/** Default markup multiplier (provider cost x 4 = billed cost) */\ndeclare const DEFAULT_AI_MARKUP = 4;","DEFAULT_ENTITY_ACCESS":"/**\n * Default access levels for entity operations\n * Opinionated framework defaults:\n * - Read is public by default (Level 0)\n * - Write operations require Admin by default (Level 2)\n */\ndeclare const DEFAULT_ENTITY_ACCESS: {\n readonly create: \"admin\";\n readonly read: \"guest\";\n readonly update: \"admin\";\n readonly delete: \"admin\";\n}","DEFAULT_LAYOUT_PRESET":"/**\n * Default layout preset - single source of truth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_LAYOUT_PRESET: \"landing\";","DEFAULT_SUBSCRIPTION":"/**\n * Default subscription for new users (free tier)\n * Framework consumers can override these defaults\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_SUBSCRIPTION: SubscriptionClaims;","DENSITY":"/**\n * Density constants - DRY single source of truth\n * Used for spacing and typography presets via data-density attribute\n * CSS uses these string values directly, but TypeScript code should use constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DENSITY: {\n readonly COMPACT: \"compact\";\n readonly STANDARD: \"standard\";\n readonly EXPRESSIVE: \"expressive\";\n}","DoNotDevError":"/**\n * Standardized error class for the DoNotDev platform\n * Single source of truth with optional fields for all use cases\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class DoNotDevError extends Error {\n /** The error code categorizing this error */\n readonly code: ErrorCode;\n /** Optional additional details or context about the error */\n readonly details?: Record<string, any>;\n /** The source system where the error originated */\n readonly source?: ErrorSource;\n /** Original error if this is wrapping another error */\n readonly originalError?: Error;\n /** Additional context for the error */\n readonly context?: Record<string, any>;\n /** Whether this error should be displayed to the user */\n readonly displayable?: boolean;\n /** Flag to track if a user message has been provided */\n readonly userMessageProvided?: boolean;\n constructor(message: string, code?: ErrorCode, options?: {\n details?: Record<string, any>;\n source?: ErrorSource;\n originalError?: Error;\n context?: Record<string, any>;\n displayable?: boolean;\n userMessageProvided?: boolean;\n });\n toString(): string;\n toJSON(): object;\n}","EDITABLE":"/**\n * Editable levels for entity fields (runtime constants)\n * Controls who can MODIFY this field\n * - true: Anyone who can see the field\n * - false: Nobody (read-only)\n * - 'user': Authenticated users+ (role hierarchy)\n * - 'admin': Admins+ (role hierarchy)\n * - 'super': Super admins only\n * - 'create-only': Editable on create, read-only after\n * - 'generated': DB-generated (excluded from forms and write schemas)\n * - 'computed': UI-computed (excluded from forms, included in writes)\n */\ndeclare const EDITABLE: {\n /** Anyone who can see the field (follows visibility) */\n readonly TRUE: true;\n /** Read-only display in forms */\n readonly FALSE: false;\n /** Authenticated users+ */\n readonly USER: \"user\";\n /** Admin+ */\n readonly ADMIN: \"admin\";\n /** Super only */\n readonly SUPER: \"super\";\n /** Editable on create, read-only after */\n readonly CREATE_ONLY: \"create-only\";\n /** DB-generated column (PostgreSQL GENERATED ALWAYS) — excluded from forms and write schemas */\n readonly GENERATED: \"generated\";\n /** UI-computed field (derived from other fields) — excluded from forms, included in writes */\n readonly COMPUTED: \"computed\";\n}","EMAIL_ERROR_CODES":"/** Email error codes */\ndeclare const EMAIL_ERROR_CODES: {\n readonly UNKNOWN: \"unknown\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly INVALID_REQUEST: \"invalid_request\";\n readonly PROVIDER_ERROR: \"provider_error\";\n readonly TEMPLATE_NOT_FOUND: \"template_not_found\";\n readonly RATE_LIMIT_EXCEEDED: \"rate_limit_exceeded\";\n readonly MISSING_API_KEY: \"missing_api_key\";\n}","EMAIL_PROVIDERS":"/** Supported email providers */\ndeclare const EMAIL_PROVIDERS: {\n readonly RESEND: \"resend\";\n}","EMAIL_VERIFICATION_STATUS":"/**\n * Email verification status constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const EMAIL_VERIFICATION_STATUS: {\n readonly VERIFIED: \"verified\";\n readonly PENDING: \"pending\";\n readonly ERROR: \"error\";\n}","ENTITY_HOOK_ERRORS":"/**\n * Error types used in entity hooks\n */\ndeclare const ENTITY_HOOK_ERRORS: {\n readonly INTERNAL_ERROR: \"INTERNAL_ERROR\";\n readonly VALIDATION_ERROR: \"VALIDATION_ERROR\";\n readonly PERMISSION_DENIED: \"PERMISSION_DENIED\";\n readonly NOT_FOUND: \"NOT_FOUND\";\n readonly ALREADY_EXISTS: \"ALREADY_EXISTS\";\n readonly NETWORK_ERROR: \"NETWORK_ERROR\";\n}","ENVIRONMENTS":"/**\n * Supported environment modes\n * @constant\n */\ndeclare const ENVIRONMENTS: {\n readonly DEVELOPMENT: \"development\";\n readonly PRODUCTION: \"production\";\n readonly TEST: \"test\";\n}","ERROR_CODES":"/**\n * Standard error codes used within the DoNotDev platform.\n * Mapped to HTTP status codes or used for specific error handling logic.\n */\ndeclare const ERROR_CODES: {\n readonly ALREADY_EXISTS: \"already-exists\";\n readonly CANCELLED: \"cancelled\";\n readonly DEADLINE_EXCEEDED: \"deadline-exceeded\";\n readonly DELETE_ACCOUNT_REQUIRES_SERVER: \"DELETE_ACCOUNT_REQUIRES_SERVER\";\n readonly INTERNAL: \"internal\";\n readonly INVALID_ARGUMENT: \"invalid-argument\";\n readonly NOT_FOUND: \"not-found\";\n readonly PERMISSION_DENIED: \"permission-denied\";\n readonly RATE_LIMIT_EXCEEDED: \"rate-limit-exceeded\";\n readonly TIMEOUT: \"timeout\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly UNAVAILABLE: \"unavailable\";\n readonly UNIMPLEMENTED: \"unimplemented\";\n readonly UNKNOWN: \"unknown\";\n readonly VALIDATION_FAILED: \"validation-failed\";\n}","ERROR_SEVERITY":"/**\n * Severity levels for error notifications and logging\n */\ndeclare const ERROR_SEVERITY: {\n readonly ERROR: \"error\";\n readonly WARNING: \"warning\";\n readonly INFO: \"info\";\n readonly SUCCESS: \"success\";\n}","ERROR_SOURCE":"/**\n * Error source types for tracking where errors originate\n */\ndeclare const ERROR_SOURCE: {\n readonly AUTH: \"auth\";\n readonly OAUTH: \"oauth\";\n readonly FIREBASE: \"firebase\";\n readonly API: \"api\";\n readonly VALIDATION: \"validation\";\n readonly ENTITY: \"entity\";\n readonly UI: \"ui\";\n readonly UNKNOWN: \"unknown\";\n}","EntityHookError":"/**\n * Error class for standardized entity hook errors\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class EntityHookError extends Error {\n type: EntityHookErrors;\n originalError?: unknown;\n constructor(type: EntityHookErrors, message: string, originalError?: unknown);\n}","FEATURES":"/**\n * Standard feature names\n * Apps can override these by providing their own feature constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FEATURES: {\n readonly BASIC_ACCESS: \"basic_access\";\n readonly ADVANCED_FEATURES: \"advanced_features\";\n readonly API_ACCESS: \"api_access\";\n readonly PRIORITY_SUPPORT: \"priority_support\";\n}","FEATURE_CONSENT_MATRIX":"/**\n * Feature/Consent Matrix\n *\n * Single source of truth for:\n * - Which features exist in the framework\n * - What consent each feature requires\n * - Type-safe feature names across codebase\n *\n * Uses CONSENT_CATEGORY constants for DRY compliance\n *\n * @example\n * ```typescript\n * // SaaS app (Auth + Billing)\n * features: ['auth', 'billing'] // No consent required (both necessary)\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FEATURE_CONSENT_MATRIX: {\n /** Authentication - Firebase Auth, user sessions */\n readonly auth: {\n readonly requiresConsent: null;\n };\n /** OAuth - Third-party authentication (Google, GitHub, etc.) */\n readonly oauth: {\n readonly requiresConsent: null;\n };\n /** Billing - Stripe subscriptions, payments */\n readonly billing: {\n readonly requiresConsent: null;\n };\n /** Analytics - Usage tracking, performance monitoring */\n readonly analytics: {\n readonly requiresConsent: \"analytics\";\n };\n /** Marketing - Advertising, retargeting */\n readonly marketing: {\n readonly requiresConsent: \"marketing\";\n };\n}","FEATURE_STATUS":"/**\n * Unified feature status for all feature packages\n * Replaces combinatorial boolean flags (initialized, authStateChecked, loading) with single-source-of-truth enum.\n *\n * **Status values:**\n * - `initializing`: Feature is loading/initializing (show skeleton/loader, DON'T redirect yet)\n * - `ready`: Feature fully operational (check user state, redirect if needed)\n * - `degraded`: Feature unavailable but app continues (protected routes redirect with error, public routes allow access)\n * - `error`: Feature encountered recoverable error (protected routes redirect with error)\n *\n * **Usage in guards:**\n * - Protected routes with `degraded` status redirect to auth route with `?error=auth_unavailable`\n * - Protected routes with `error` status redirect to auth route with `?error=auth_error`\n * - `initializing` shows loader, doesn't redirect\n * - `ready` performs normal auth checks\n *\n * @example\n * ```typescript\n * switch (status) {\n * case FEATURE_STATUS.INITIALIZING: return <Skeleton />;\n * case FEATURE_STATUS.DEGRADED:\n * // Protected route → redirect with error\n * // Public route → allow access\n * return authRequired ? <Redirect to=\"/auth?error=auth_unavailable\" /> : children;\n * case FEATURE_STATUS.READY: return user ? children : <Redirect />;\n * case FEATURE_STATUS.ERROR: return <ErrorBoundary />;\n * }\n * ```\n */\ndeclare const FEATURE_STATUS: {\n readonly INITIALIZING: \"initializing\";\n readonly READY: \"ready\";\n readonly DEGRADED: \"degraded\";\n readonly ERROR: \"error\";\n}","FIELD_TYPES":"declare const FIELD_TYPES: readonly [\"address\", \"array\", \"avatar\", \"badge\", \"boolean\", \"checkbox\", \"color\", \"combobox\", \"date\", \"datetime-local\", \"document\", \"documents\", \"duration\", \"email\", \"field-array\", \"file\", \"files\", \"gdprConsent\", \"geopoint\", \"hidden\", \"iban\", \"image\", \"images\", \"map\", \"month\", \"multiselect\", \"number\", \"currency\", \"price\", \"password\", \"radio\", \"reference\", \"range\", \"rating\", \"reset\", \"richtext\", \"select\", \"submit\", \"switch\", \"tel\", \"text\", \"textarea\", \"time\", \"timestamp\", \"url\", \"week\", \"year\"];","FIREBASE_ERROR_MAP":"/**\n * Maps Firebase error codes to entity hook error types\n * Used for consistent error handling across the platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FIREBASE_ERROR_MAP: Record<string, {\n type: EntityHookErrors;\n message: string;\n}","FOOTER_MODE":"/**\n * Footer mode constants - DRY single source of truth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FOOTER_MODE: {\n readonly FIXED: \"fixed\";\n readonly SCROLL: \"scroll\";\n}","GITHUB_PERMISSION_LEVELS":"/**\n * GitHub repository permission levels (runtime constants)\n * Keep in sync with GitHub API scopes/permissions.\n */\ndeclare const GITHUB_PERMISSION_LEVELS: readonly [\"pull\", \"push\", \"admin\", \"maintain\", \"triage\"];","LAYOUT_PRESET":"/**\n * Layout preset constants - DRY single source of truth\n * Use these instead of hardcoded strings throughout the codebase\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LAYOUT_PRESET: {\n readonly ADMIN: \"admin\";\n readonly BLOG: \"blog\";\n readonly DOCS: \"docs\";\n readonly GAME: \"game\";\n readonly LANDING: \"landing\";\n readonly MOOLTI: \"moolti\";\n readonly PLAIN: \"plain\";\n}","LIST_SCHEMA_TYPE":"/** Schema type for list queries (list vs listCard) */\ndeclare const LIST_SCHEMA_TYPE: {\n readonly LIST: \"list\";\n readonly LIST_CARD: \"listCard\";\n}","MAX_CHECKOUT_LINE_ITEMS":"/**\n * Maximum line items per checkout request (framework limit).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const MAX_CHECKOUT_LINE_ITEMS = 100;","MAX_SHIPPING_RATE_IDS":"/**\n * Maximum shipping rates per Checkout Session (Stripe `shipping_options` limit).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const MAX_SHIPPING_RATE_IDS = 5;","OAUTH_EVENTS":"/**\n * OAuth event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const OAUTH_EVENTS: {\n readonly OAUTH_STARTED: \"oauth.started\";\n readonly OAUTH_SUCCESS: \"oauth.success\";\n readonly OAUTH_ERROR: \"oauth.error\";\n readonly OAUTH_CANCELLED: \"oauth.cancelled\";\n readonly OAUTH_TOKEN_EXCHANGED: \"oauth.token.exchanged\";\n readonly OAUTH_TOKEN_REFRESHED: \"oauth.token.refreshed\";\n readonly OAUTH_PARTNER_LINKED: \"oauth.partner.linked\";\n readonly OAUTH_PARTNER_UNLINKED: \"oauth.partner.unlinked\";\n}","OAUTH_PARTNERS":"/**\n * OAuth partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const OAUTH_PARTNERS: {\n readonly google: {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly github: {\n readonly name: \"GitHub\";\n readonly color: \"#24292E\";\n readonly icon: \"github\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"read:user\", \"user:email\"];\n readonly 'api-access': readonly [\"repo\", \"user\", \"read:org\", \"gist\", \"notifications\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://github.com/login/oauth/authorize\";\n readonly tokenUrl: \"https://github.com/login/oauth/access_token\";\n readonly profileUrl: \"https://api.github.com/user\";\n readonly revokeUrl: \"https://api.github.com/applications/CLIENT_ID/token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly discord: {\n readonly name: \"Discord\";\n readonly color: \"#5865F2\";\n readonly icon: \"discord\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"identify\", \"email\"];\n readonly 'api-access': readonly [\"guilds\", \"guilds.members.read\", \"bot\", \"messages.read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://discord.com/api/oauth2/authorize\";\n readonly tokenUrl: \"https://discord.com/api/oauth2/token\";\n readonly profileUrl: \"https://discord.com/api/users/@me\";\n readonly revokeUrl: \"https://discord.com/api/oauth2/token/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly spotify: {\n readonly name: \"Spotify\";\n readonly color: \"#1DB954\";\n readonly icon: \"spotify\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"user-read-email\", \"user-read-private\"];\n readonly 'api-access': readonly [\"user-read-playback-state\", \"user-modify-playback-state\", \"user-read-currently-playing\", \"playlist-read-private\", \"playlist-modify-public\", \"user-library-read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.spotify.com/authorize\";\n readonly tokenUrl: \"https://accounts.spotify.com/api/token\";\n readonly profileUrl: \"https://api.spotify.com/v1/me\";\n readonly revokeUrl: \"https://accounts.spotify.com/api/token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly twitch: {\n readonly name: \"Twitch\";\n readonly color: \"#9146FF\";\n readonly icon: \"twitch\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"user:read:email\"];\n readonly 'api-access': readonly [\"channel:read:subscriptions\", \"bits:read\", \"channel:manage:broadcast\", \"channel:read:stream_key\", \"user:read:follows\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://id.twitch.tv/oauth2/authorize\";\n readonly tokenUrl: \"https://id.twitch.tv/oauth2/token\";\n readonly profileUrl: \"https://api.twitch.tv/helix/users\";\n readonly revokeUrl: \"https://id.twitch.tv/oauth2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly reddit: {\n readonly name: \"Reddit\";\n readonly color: \"#FF4500\";\n readonly icon: \"reddit\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"identity\"];\n readonly 'api-access': readonly [\"read\", \"submit\", \"vote\", \"mysubreddits\", \"subscribe\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://www.reddit.com/api/v1/authorize\";\n readonly tokenUrl: \"https://www.reddit.com/api/v1/access_token\";\n readonly profileUrl: \"https://oauth.reddit.com/api/v1/me\";\n readonly revokeUrl: \"https://www.reddit.com/api/v1/revoke_token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly linkedin: {\n readonly name: \"LinkedIn\";\n readonly color: \"#0077B5\";\n readonly icon: \"linkedin\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"r_liteprofile\", \"r_emailaddress\", \"w_member_social\", \"r_organization_social\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://www.linkedin.com/oauth/v2/authorization\";\n readonly tokenUrl: \"https://www.linkedin.com/oauth/v2/accessToken\";\n readonly profileUrl: \"https://api.linkedin.com/v2/me\";\n readonly revokeUrl: \"https://www.linkedin.com/oauth/v2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly slack: {\n readonly name: \"Slack\";\n readonly color: \"#E01E5A\";\n readonly icon: \"slack\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"channels:read\", \"chat:write\", \"users:read\", \"files:read\", \"im:read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://slack.com/oauth/v2/authorize\";\n readonly tokenUrl: \"https://slack.com/api/oauth.v2.access\";\n readonly profileUrl: \"https://slack.com/api/users.identity\";\n readonly revokeUrl: \"https://slack.com/api/auth.revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly notion: {\n readonly name: \"Notion\";\n readonly color: \"#000000\";\n readonly icon: \"notion\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"read\", \"write\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://api.notion.com/v1/oauth/authorize\";\n readonly tokenUrl: \"https://api.notion.com/v1/oauth/token\";\n readonly profileUrl: \"https://api.notion.com/v1/users/me\";\n readonly revokeUrl: \"https://api.notion.com/v1/oauth/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly medium: {\n readonly name: \"Medium\";\n readonly color: \"#000000\";\n readonly icon: \"medium\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"basicProfile\", \"publishPost\", \"listPublications\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://medium.com/m/oauth/authorize\";\n readonly tokenUrl: \"https://medium.com/v1/tokens\";\n readonly profileUrl: \"https://medium.com/v1/me\";\n readonly revokeUrl: \"https://medium.com/v1/tokens/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly twitter: {\n readonly name: \"X\";\n readonly color: \"#000000\";\n readonly icon: \"twitter\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"tweet.read\", \"users.read\", \"follows.read\", \"tweet.write\", \"like.write\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://twitter.com/i/oauth2/authorize\";\n readonly tokenUrl: \"https://api.twitter.com/2/oauth2/token\";\n readonly profileUrl: \"https://api.twitter.com/2/users/me\";\n readonly revokeUrl: \"https://api.twitter.com/2/oauth2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly mastodon: {\n readonly name: \"Mastodon\";\n readonly color: \"#6364FF\";\n readonly icon: \"mastodon\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"read\", \"write\", \"follow\", \"push\"];\n };\n readonly endpoints: {\n readonly authUrl: \"\";\n readonly tokenUrl: \"\";\n readonly profileUrl: \"\";\n readonly revokeUrl: \"\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly youtube: {\n readonly name: \"YouTube\";\n readonly color: \"#FF0000\";\n readonly icon: \"youtube\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/youtube.readonly\", \"https://www.googleapis.com/auth/youtube.upload\", \"https://www.googleapis.com/auth/youtube.force-ssl\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/youtube/v3/channels\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly supabase: {\n readonly name: \"Supabase\";\n readonly color: \"#3ECF8E\";\n readonly icon: \"supabase\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"auth:read\", \"auth:write\", \"database:read\", \"database:write\", \"domains:read\", \"domains:write\", \"edge_functions:read\", \"edge_functions:write\", \"environment:read\", \"environment:write\", \"organizations:read\", \"projects:read\", \"projects:write\", \"rest:read\", \"rest:write\", \"secrets:read\", \"secrets:write\", \"storage:read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://api.supabase.com/v1/oauth/authorize\";\n readonly tokenUrl: \"https://api.supabase.com/v1/oauth/token\";\n readonly profileUrl: \"\";\n readonly revokeUrl: \"\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#F1F3F5\";\n readonly textColor: \"#11181C\";\n readonly borderColor: \"#E6E8EB\";\n readonly hoverBackgroundColor: \"#E6E8EB\";\n readonly focusOutlineColor: \"#3ECF8E\";\n readonly fontWeight: \"500\";\n };\n };\n readonly vercel: {\n readonly name: \"Vercel\";\n readonly color: \"#000000\";\n readonly icon: \"vercel\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"email\", \"profile\", \"offline_access\"];\n readonly 'api-access': readonly [\"project\", \"project-env-vars\", \"deployment\", \"team\", \"user\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://vercel.com/oauth/authorize\";\n readonly tokenUrl: \"https://api.vercel.com/login/oauth/token\";\n readonly profileUrl: \"https://api.vercel.com/login/oauth/userinfo\";\n readonly revokeUrl: \"https://api.vercel.com/login/oauth/token/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n}","ORDER_DIRECTION":"/** Order direction for query orderBy */\ndeclare const ORDER_DIRECTION: {\n readonly ASC: \"asc\";\n readonly DESC: \"desc\";\n}","PARTNER_ICONS":"/**\n * Partner icon constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PARTNER_ICONS: {\n readonly apple: \"apple\";\n readonly discord: \"discord\";\n readonly emailLink: \"emailLink\";\n readonly facebook: \"facebook\";\n readonly github: \"github\";\n readonly google: \"google\";\n readonly linkedin: \"linkedin\";\n readonly microsoft: \"microsoft\";\n readonly password: \"password\";\n readonly reddit: \"reddit\";\n readonly spotify: \"spotify\";\n readonly twitch: \"twitch\";\n readonly twitter: \"twitter\";\n readonly yahoo: \"yahoo\";\n readonly notion: \"notion\";\n readonly slack: \"slack\";\n readonly medium: \"medium\";\n readonly mastodon: \"mastodon\";\n readonly youtube: \"youtube\";\n}","PAYLOAD_EVENTS":"/**\n * Payload CMS event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PAYLOAD_EVENTS: {\n readonly DOCUMENT_CREATED: \"payload.document.created\";\n readonly DOCUMENT_UPDATED: \"payload.document.updated\";\n readonly DOCUMENT_DELETED: \"payload.document.deleted\";\n readonly MEDIA_CREATED: \"payload.media.created\";\n readonly MEDIA_UPDATED: \"payload.media.updated\";\n readonly MEDIA_DELETED: \"payload.media.deleted\";\n readonly GLOBAL_UPDATED: \"payload.global.updated\";\n readonly USER_CREATED: \"payload.user.created\";\n readonly USER_UPDATED: \"payload.user.updated\";\n readonly USER_DELETED: \"payload.user.deleted\";\n readonly CACHE_INVALIDATED: \"payload.cache.invalidated\";\n readonly PAGE_REGENERATED: \"payload.page.regenerated\";\n}","PERMISSIONS":"/**\n * Standard permission names\n * Apps can override these by providing their own permission constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PERMISSIONS: {\n readonly READ_PUBLIC: \"read_public\";\n readonly READ_OWN_DATA: \"read_own_data\";\n readonly WRITE_OWN_DATA: \"write_own_data\";\n readonly READ_ALL_DATA: \"read_all_data\";\n readonly MANAGE_USERS: \"manage_users\";\n}","PLATFORMS":"/**\n * Supported platform identifiers\n * @constant\n */\ndeclare const PLATFORMS: {\n readonly VITE: \"vite\";\n readonly NEXTJS: \"nextjs\";\n readonly EXPO: \"expo\";\n readonly REACT_NATIVE: \"react-native\";\n readonly UNKNOWN: \"unknown\";\n}","PWA_ASSET_TYPES":"/**\n * PWA asset types\n * @constant\n */\ndeclare const PWA_ASSET_TYPES: {\n readonly MANIFEST: \"manifest\";\n readonly SERVICE_WORKER: \"service-worker\";\n readonly ICON: \"icon\";\n}","PWA_DISPLAY_MODES":"/**\n * PWA display modes\n * @constant\n */\ndeclare const PWA_DISPLAY_MODES: {\n readonly STANDALONE: \"standalone\";\n readonly FULLSCREEN: \"fullscreen\";\n readonly MINIMAL_UI: \"minimal-ui\";\n readonly BROWSER: \"browser\";\n}","ProductDeclarationSchema":"/**\n * Union schema for all product types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProductDeclarationSchema: v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n /** Default amount in cents (dynamic pricing). Used when no priceId. */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** Product name for Stripe checkout (dynamic pricing). */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */\n readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","ProductDeclarationsSchema":"/**\n * Schema for product declarations object\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProductDeclarationsSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n /** Default amount in cents (dynamic pricing). Used when no priceId. */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** Product name for Stripe checkout (dynamic pricing). */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */\n readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","ROUTE_SOURCES":"/**\n * Route discovery sources\n * @constant\n */\ndeclare const ROUTE_SOURCES: {\n readonly AUTO: \"auto-discovery\";\n readonly MANUAL: \"manual\";\n readonly HYBRID: \"hybrid\";\n}","STORAGE_SCOPES":"/**\n * Storage scope levels for data isolation\n * @constant\n */\ndeclare const STORAGE_SCOPES: {\n readonly USER: \"user\";\n readonly GLOBAL: \"global\";\n readonly SESSION: \"session\";\n}","STORAGE_TYPES":"/**\n * Supported storage backend types\n * @constant\n */\ndeclare const STORAGE_TYPES: {\n readonly LOCAL: \"localStorage\";\n readonly SESSION: \"sessionStorage\";\n readonly INDEXED_DB: \"indexedDB\";\n readonly MEMORY: \"memory\";\n}","STRIPE_EVENTS":"/**\n * Stripe event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const STRIPE_EVENTS: {\n readonly PAYMENT_INTENT_SUCCEEDED: \"stripe.payment_intent.succeeded\";\n readonly PAYMENT_INTENT_FAILED: \"stripe.payment_intent.payment_failed\";\n readonly CHECKOUT_SESSION_COMPLETED: \"stripe.checkout.session.completed\";\n readonly CUSTOMER_CREATED: \"stripe.customer.created\";\n readonly CUSTOMER_UPDATED: \"stripe.customer.updated\";\n readonly CUSTOMER_DELETED: \"stripe.customer.deleted\";\n readonly INVOICE_CREATED: \"stripe.invoice.created\";\n readonly INVOICE_PAID: \"stripe.invoice.paid\";\n readonly INVOICE_PAYMENT_FAILED: \"stripe.invoice.payment_failed\";\n readonly SUBSCRIPTION_CREATED: \"stripe.subscription.created\";\n readonly SUBSCRIPTION_UPDATED: \"stripe.subscription.updated\";\n readonly SUBSCRIPTION_DELETED: \"stripe.subscription.deleted\";\n}","STRIPE_MODES":"/**\n * Standard payment mode values for Stripe checkout\n * Apps can override these by providing their own mode constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const STRIPE_MODES: {\n readonly PAYMENT: \"payment\";\n readonly SUBSCRIPTION: \"subscription\";\n}","SUBSCRIPTION_DURATIONS":"/**\n * Standard subscription duration values\n * Apps can override these by providing their own duration constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_DURATIONS: {\n readonly ONE_MONTH: \"1month\";\n readonly THREE_MONTHS: \"3months\";\n readonly SIX_MONTHS: \"6months\";\n readonly ONE_YEAR: \"1year\";\n readonly TWO_YEARS: \"2years\";\n readonly LIFETIME: \"lifetime\";\n}","SUBSCRIPTION_STATUS":"/**\n * Standard subscription status values from billing providers\n * Apps can override these by providing their own status constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_STATUS: {\n readonly ACTIVE: \"active\";\n readonly CANCELED: \"canceled\";\n readonly INCOMPLETE: \"incomplete\";\n readonly INCOMPLETE_EXPIRED: \"incomplete_expired\";\n readonly PAST_DUE: \"past_due\";\n readonly TRIALING: \"trialing\";\n readonly UNPAID: \"unpaid\";\n}","SUBSCRIPTION_TIERS":"/**\n * Standard subscription tier names\n * Apps can override these by providing their own tier constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_TIERS: {\n readonly FREE: \"free\";\n readonly PRO: \"pro\";\n readonly PREMIUM: \"premium\";\n}","SendEmailRequestSchema":"/** Schema for send email request (caller → handler) */\ndeclare const SendEmailRequestSchema: v.ObjectSchema<{\n /** Template ID from the registry */\n readonly templateId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n /** Recipient email address */\n readonly to: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;\n /** Template data (shape depends on template) */\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n /** Locale for i18n rendering (default: 'fr') */\n readonly locale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 5, undefined>]>, \"fr\">;\n /** Override \"from\" address */\n readonly from: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Override reply-to address */\n readonly replyTo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","SendEmailResponseSchema":"/** Schema for send email response */\ndeclare const SendEmailResponseSchema: v.ObjectSchema<{\n /** Whether the email was sent successfully */\n readonly success: v.BooleanSchema<undefined>;\n /** Provider message ID (for tracking) */\n readonly messageId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Error message if sending failed */\n readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","StripeBackConfigSchema":"/**\n * Schema for backend billing configuration (with hooks)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly name: v.StringSchema<undefined>;\n readonly price: v.NumberSchema<undefined>;\n readonly currency: v.StringSchema<undefined>;\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly duration: v.StringSchema<undefined>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n}","StripeFrontConfigSchema":"/**\n * Schema for frontend billing configuration (display only)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeFrontConfigSchema: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly name: v.StringSchema<undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.StringSchema<undefined>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n /** Stripe price ID (fixed pricing). Optional for dynamic pricing products. */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Amount in cents (dynamic pricing). For display purposes. */\n readonly unitAmount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;\n /** Product name (dynamic pricing). For display purposes. */\n readonly productName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","StripeOrderBackSchema":"/**\n * Back-config item for a multi-line, one-time order priced on the server\n * (`resolveLineItems` hook, TypeScript only).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderBackSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripeOrder\", undefined>;\n readonly name: v.StringSchema<undefined>;\n /** ISO 4217 currency of every resolved line */\n readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, undefined>]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tax: v.VariantSchema<\"mode\", [v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"manual\", undefined>;\n readonly taxRateIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n }, undefined>, v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"automatic\", undefined>;\n }, undefined>], undefined>;\n /** Collect the buyer's tax ID (VAT number) */\n readonly taxIdCollection: v.PicklistSchema<[\"disabled\", \"optional\", \"required\"], undefined>;\n readonly billingAddressCollection: v.PicklistSchema<[\"auto\", \"required\"], undefined>;\n readonly shipping: v.OptionalSchema<v.ObjectSchema<{\n /** Uppercase ISO 3166-1 alpha-2 country codes the order can ship to (e.g. `FR`) */\n readonly allowedCountries: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, \"allowedCountries: uppercase ISO 3166-1 alpha-2 code expected (e.g. FR)\">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n /** Stripe Shipping Rate IDs offered at checkout (Stripe allows at most 5) */\n readonly shippingRateIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 5, \"shippingRateIds: at most 5 (Stripe limit)\">]>, undefined>;\n }, undefined>, undefined>;\n readonly customerCreation: v.PicklistSchema<[\"always\", \"if_required\"], undefined>;\n /** Generate a post-payment Stripe invoice */\n readonly invoiceCreation: v.BooleanSchema<undefined>;\n /** Stripe Payment Method Configuration ID (card, SEPA debit...). Omit to use the account default. */\n readonly paymentMethodConfiguration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n}","StripeOrderShippingSchema":"/**\n * Shipping collection for StripeOrder.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderShippingSchema: v.ObjectSchema<{\n /** Uppercase ISO 3166-1 alpha-2 country codes the order can ship to (e.g. `FR`) */\n readonly allowedCountries: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, \"allowedCountries: uppercase ISO 3166-1 alpha-2 code expected (e.g. FR)\">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n /** Stripe Shipping Rate IDs offered at checkout (Stripe allows at most 5) */\n readonly shippingRateIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 5, \"shippingRateIds: at most 5 (Stripe limit)\">]>, undefined>;\n}","StripeOrderTaxSchema":"/**\n * Tax handling for StripeOrder. Unit amounts are always excl. VAT\n * (`tax_behavior: 'exclusive'`).\n * - `manual`: Stripe Tax Rate IDs applied to every line\n * - `automatic`: Stripe Tax computes the tax (reverse charge from the buyer's tax ID)\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderTaxSchema: v.VariantSchema<\"mode\", [v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"manual\", undefined>;\n readonly taxRateIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n}","StripePaymentSchema":"/**\n * Schema for one-time payment products\n * Core fields only - no assumptions about integrations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripePaymentSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID (fixed pricing). Optional when using dynamic pricing. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n /** Default amount in cents (dynamic pricing). Used when no priceId. */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** Product name for Stripe checkout (dynamic pricing). */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** Maximum allowed unit amount in cents. Security cap for client-provided amounts. */\n readonly maxUnitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","StripeSubscriptionSchema":"/**\n * Schema for recurring subscription products\n * Core fields only - no assumptions about integrations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeSubscriptionSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripeSubscription\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID. Required for subscriptions (price_data not supported for recurring). */\n readonly priceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.PicklistSchema<[\"1month\", \"3months\", \"6months\", \"1year\", \"2years\", \"lifetime\"], undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","SubscriptionClaimsSchema":"/**\n * Schema for subscription claims stored in Firebase Auth custom claims\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SubscriptionClaimsSchema: v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","SubscriptionDataSchema":"/**\n * Schema for subscription data from billing providers\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SubscriptionDataSchema: v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","USER_ROLES":"/**\n * Standard user role names\n * Apps can override these by providing their own role constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const USER_ROLES: {\n readonly GUEST: \"guest\";\n readonly USER: \"user\";\n readonly ADMIN: \"admin\";\n readonly SUPER: \"super\";\n}","UserSubscriptionSchema":"/**\n * Schema for user subscription data\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const UserSubscriptionSchema: v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","VISIBILITY":"/**\n * Visibility levels for entity fields (runtime constants)\n * Controls who can SEE this field in responses\n * Matches USER_ROLES hierarchy + technical + hidden + owner\n *\n * - guest: Everyone (even unauthenticated)\n * - user: Authenticated users (users see guest + user fields)\n * - admin: Admins only (admins see guest + user + admin fields)\n * - super: Super admins only (see all non-technical fields)\n * - technical: System fields (shown as read-only in edit forms, admins+ only)\n * - hidden: Never exposed to client (passwords, tokens, API keys)\n * - owner: Visible only when request.auth.uid matches one of entity.ownership.ownerFields on the document\n */\ndeclare const VISIBILITY: {\n readonly GUEST: \"guest\";\n readonly USER: \"user\";\n readonly ADMIN: \"admin\";\n readonly SUPER: \"super\";\n readonly TECHNICAL: \"technical\";\n readonly HIDDEN: \"hidden\";\n readonly OWNER: \"owner\";\n}","WebhookEventSchema":"/**\n * Schema for webhook event data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const WebhookEventSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","checkGitHubAccessSchema":"/**\n * Schema for checking GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const checkGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n}","createDefaultSubscriptionClaims":"/**\n * Factory function to create default subscription claims\n * @param userId - User ID for the subscription\n * @returns Default subscription claims for free tier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDefaultSubscriptionClaims(userId: string): SubscriptionClaims;","createDefaultUserProfile":"/**\n * Factory function to create default user profile\n * @param userId - User ID for the profile\n * @returns Default user profile with minimal required fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDefaultUserProfile(userId: string): UserProfile;","createEntitySchema":"/**\n * Schema for creating an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const createEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","deleteEntitySchema":"/**\n * Schema for deleting an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const deleteEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n}","disconnectOAuthSchema":"/**\n * Schema for disconnecting OAuth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const disconnectOAuthSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n}","exchangeTokenSchema":"/**\n * Schema for OAuth token exchange requests\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const exchangeTokenSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n readonly purpose: v.BaseSchema<unknown, OAuthPurpose, v.BaseIssue<unknown>>;\n readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Authorization code is required\">]>;\n readonly redirectUri: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, \"Valid redirect URI is required\">]>;\n readonly codeVerifier: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly state: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly instance: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","getBreakpointFromWidth":"/**\n * Get breakpoint from window width\n *\n * @param width - Window width in pixels\n * @returns The corresponding breakpoint\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBreakpointFromWidth(width: number): Breakpoint;","getBreakpointUtils":"/**\n * Get breakpoint utilities from window dimensions\n *\n * @param width - Window width in pixels\n * @param height - Window height in pixels\n * @returns Computed breakpoint utilities\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBreakpointUtils(width: number, height: number): BreakpointUtils;","getConnectionsSchema":"/**\n * Schema for getting OAuth connections\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const getConnectionsSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n}","getEntitySchema":"/**\n * Schema for getting an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const getEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n}","githubPermissionSchema":"/**\n * Schema for GitHub access permission levels\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const githubPermissionSchema: v.PicklistSchema<[string, ...string[]], undefined>;","githubRepoConfigSchema":"/**\n * Schema for GitHub repository configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const githubRepoConfigSchema: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n}","grantGitHubAccessSchema":"/**\n * Schema for granting GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const grantGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n readonly permission: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, \"push\">;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","isAuthPartnerId":"/**\n * Checks if a partner ID is an authentication partner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isAuthPartnerId(id: PartnerId): id is AuthPartnerId;","isBreakpoint":"/**\n * Check if a breakpoint matches the current width\n *\n * @param width - Window width in pixels\n * @param breakpoint - Target breakpoint to check\n * @returns Whether the width matches the breakpoint\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isBreakpoint(width: number, breakpoint: Breakpoint): boolean;","isOAuthPartnerId":"/**\n * Checks if a partner ID is an OAuth partner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isOAuthPartnerId(id: PartnerId): id is OAuthPartnerId;","listEntitiesSchema":"/**\n * Schema for listing entities.\n *\n * Default limit is **1000** (server-enforced max: 1000).\n * For collections larger than 1000 items, use server-side pagination\n * (`pagination='server'` on EntityList, or cursor-based `startAfter` in hooks).\n *\n * @example\n * // Fetch up to 1000 items (default)\n * { collection: 'products' }\n *\n * @example\n * // Fetch 200 items\n * { collection: 'products', limit: 200 }\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const listEntitiesSchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 1000>;\n readonly offset: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;\n readonly orderBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly orderDirection: v.OptionalSchema<v.PicklistSchema<[\"asc\", \"desc\"], undefined>, \"desc\">;\n readonly where: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly field: v.StringSchema<undefined>;\n readonly operator: v.PicklistSchema<[\"==\", \"!=\", \"<\", \"<=\", \">\", \">=\", \"array-contains\", \"in\", \"not-in\"], undefined>;\n readonly value: v.UnknownSchema;\n }, undefined>, undefined>, undefined>;\n}","overrideFeatures":"/**\n * Override features for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideFeatures({\n * BASIC_ACCESS: 'read_access',\n * ADVANCED_FEATURES: 'write_access',\n * API_ACCESS: 'api_calls',\n * PRIORITY_SUPPORT: 'dedicated_support'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideFeatures(customFeatures: Partial<typeof FEATURES>): void;","overridePaymentModes":"/**\n * Override payment modes for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overridePaymentModes({\n * PAYMENT: 'one_time',\n * SUBSCRIPTION: 'recurring'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overridePaymentModes(customModes: Partial<typeof STRIPE_MODES>): void;","overridePermissions":"/**\n * Override permissions for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overridePermissions({\n * READ_PUBLIC: 'view_public',\n * READ_OWN_DATA: 'view_profile',\n * WRITE_OWN_DATA: 'edit_profile',\n * READ_ALL_DATA: 'view_all',\n * MANAGE_USERS: 'admin_users'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overridePermissions(customPermissions: Partial<typeof PERMISSIONS>): void;","overrideSubscriptionStatus":"/**\n * Override subscription status for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideSubscriptionStatus({\n * ACTIVE: 'subscribed',\n * CANCELED: 'cancelled',\n * TRIALING: 'trial'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideSubscriptionStatus(customStatus: Partial<typeof SUBSCRIPTION_STATUS>): void;","overrideSubscriptionTiers":"/**\n * Override subscription tiers for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideSubscriptionTiers({\n * FREE: 'basic',\n * PRO: 'professional',\n * PREMIUM: 'enterprise'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideSubscriptionTiers(customTiers: Partial<typeof SUBSCRIPTION_TIERS>): void;","overrideUserRoles":"/**\n * Override user roles for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideUserRoles({\n * GUEST: 'visitor',\n * USER: 'member',\n * ADMIN: 'moderator'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideUserRoles(customRoles: Partial<typeof USER_ROLES>): void;","refreshTokenSchema":"/**\n * Schema for refreshing OAuth token\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const refreshTokenSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n readonly refreshToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Refresh token is required\">]>;\n readonly redirectUri: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, \"Valid redirect URI is required\">]>;\n}","revokeGitHubAccessSchema":"/**\n * Schema for revoking GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const revokeGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n}","updateEntitySchema":"/**\n * Schema for updating an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const updateEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n readonly merge: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n}","validateAIChatRequest":"declare function validateAIChatRequest(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly messages: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>, undefined>, v.MinLengthAction<{\n role: \"user\" | \"assistant\" | \"system\";\n content: string;\n id?: string | undefined;\n createdAt?: string | undefined;\n }[], 1, undefined>]>;\n readonly provider: v.OptionalSchema<v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>, undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly stream: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tools: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n }, undefined>, undefined>, undefined>;\n}","validateAIChatResponse":"declare function validateAIChatResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly message: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly usage: v.OptionalSchema<v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n }, undefined>, undefined>;\n readonly finishReason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly toolCalls: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n}","validateAuthPartners":"/**\n * Validates authentication partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthPartners(): v.SafeParseResult<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly type: v.PicklistSchema<[\"auth\", \"both\"], undefined>;\n readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly firebaseProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly color: v.StringSchema<undefined>;\n readonly icon: v.StringSchema<undefined>;\n readonly customParameters: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly button: v.ObjectSchema<{\n readonly backgroundColor: v.StringSchema<undefined>;\n readonly textColor: v.StringSchema<undefined>;\n readonly borderColor: v.StringSchema<undefined>;\n readonly hoverBackgroundColor: v.StringSchema<undefined>;\n readonly focusOutlineColor: v.StringSchema<undefined>;\n readonly fontWeight: v.OptionalSchema<v.StringSchema<undefined>, \"500\">;\n readonly textKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n}","validateAuthSchemas":"/**\n * Validate that all schemas are properly configured\n * Only runs when explicitly called during development\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthSchemas(): {\n success: boolean;\n results: {\n authUser: v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n }, undefined>>;\n userSubscription: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n customClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n }, undefined>>;\n getUserAuthStatus: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n }, undefined>>;\n getCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claimKeys: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>>;\n setCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>;\n readonly merge: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n }, undefined>>;\n removeCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claimKeys: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n }, undefined>>;\n };\n}","validateAuthUser":"/**\n * Validate auth user data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthUser(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","validateBillingSchemas":"/**\n * Validate all billing schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateBillingSchemas(): {\n success: boolean;\n results: {\n createCheckoutSessionRequest: v.SafeParseResult<v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n }, undefined>, v.RawTransformAction<{\n billingConfigKey?: string | undefined;\n lineItems?: {\n productId: string;\n quantity: number;\n }[] | undefined;\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n userId?: string | undefined;\n productId?: string | undefined;\n priceId?: string | undefined;\n unitAmount?: number | undefined;\n productName?: string | undefined;\n currency?: string | undefined;\n userEmail?: string | undefined;\n mode?: \"payment\" | \"subscription\" | undefined;\n }, {\n billingConfigKey: string;\n lineItems: {\n productId: string;\n quantity: number;\n }[];\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n userId?: string | undefined;\n productId?: string | undefined;\n priceId?: string | undefined;\n unitAmount?: number | undefined;\n productName?: string | undefined;\n currency?: string | undefined;\n userEmail?: string | undefined;\n mode?: \"payment\" | \"subscription\" | undefined;\n }>]>>;\n createCheckoutSessionResponse: v.SafeParseResult<v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n }, undefined>>;\n subscriptionData: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n subscriptionClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n }, undefined>>;\n webhookEvent: v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n checkoutSessionMetadata: v.SafeParseResult<v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>>;\n };\n}","validateCheckoutSessionMetadata":"/**\n * Validate checkout session metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCheckoutSessionMetadata(data: unknown): v.SafeParseResult<v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateCreateCheckoutSessionRequest":"/**\n * Validate (and normalize) a create checkout session request\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCreateCheckoutSessionRequest(data: unknown): v.SafeParseResult<v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: amount in cents (dynamic pricing, capped by the back config `maxUnitAmount`) */\n readonly unitAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n /** 0.1.x: product name shown on Stripe checkout (dynamic pricing) */\n readonly productName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n /** 0.1.x: currency code (dynamic pricing), defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n}","validateCreateCheckoutSessionResponse":"/**\n * Validate create checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCreateCheckoutSessionResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","validateCustomClaims":"/**\n * Validate custom claims data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCustomClaims(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n}","validateOAuthPartners":"/**\n * Validates OAuth partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateOAuthPartners(): v.SafeParseResult<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly type: v.PicklistSchema<[\"oauth\", \"both\"], undefined>;\n readonly scopes: v.ObjectSchema<{\n readonly authentication: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly 'api-access': v.ArraySchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly endpoints: v.ObjectSchema<{\n readonly authUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly tokenUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly profileUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly revokeUrl: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;\n }, undefined>;\n readonly capabilities: v.OptionalSchema<v.ObjectSchema<{\n readonly pkce: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n readonly codeChallengeMethod: v.OptionalSchema<v.PicklistSchema<[\"S256\", \"plain\"], undefined>, \"S256\">;\n }, undefined>, undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly color: v.StringSchema<undefined>;\n readonly icon: v.StringSchema<undefined>;\n readonly customParameters: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly button: v.ObjectSchema<{\n readonly backgroundColor: v.StringSchema<undefined>;\n readonly textColor: v.StringSchema<undefined>;\n readonly borderColor: v.StringSchema<undefined>;\n readonly hoverBackgroundColor: v.StringSchema<undefined>;\n readonly focusOutlineColor: v.StringSchema<undefined>;\n readonly fontWeight: v.OptionalSchema<v.StringSchema<undefined>, \"500\">;\n readonly textKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n}","validateSendEmailRequest":"declare function validateSendEmailRequest(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n /** Template ID from the registry */\n readonly templateId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n /** Recipient email address */\n readonly to: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;\n /** Template data (shape depends on template) */\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n /** Locale for i18n rendering (default: 'fr') */\n readonly locale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 5, undefined>]>, \"fr\">;\n /** Override \"from\" address */\n readonly from: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Override reply-to address */\n readonly replyTo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateSendEmailResponse":"declare function validateSendEmailResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n /** Whether the email was sent successfully */\n readonly success: v.BooleanSchema<undefined>;\n /** Provider message ID (for tracking) */\n readonly messageId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Error message if sending failed */\n readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateStripeBackConfig":"/**\n * Helper to validate backend config at runtime\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateStripeBackConfig(config: unknown): {\n [x: string]: {\n name: string;\n price: number;\n currency: string;\n priceId?: string | undefined;\n unitAmount?: number | undefined;\n productName?: string | undefined;\n maxUnitAmount?: number | undefined;\n tier: string;\n duration: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n type: \"StripePayment\";\n } | {\n name: string;\n price: number;\n currency: string;\n priceId?: string | undefined;\n unitAmount?: number | undefined;\n productName?: string | undefined;\n maxUnitAmount?: number | undefined;\n tier: string;\n duration: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n type: \"StripeSubscription\";\n } | {\n type: \"StripeOrder\";\n name: string;\n currency: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n tax: {\n mode: \"manual\";\n taxRateIds: string[];\n } | {\n mode: \"automatic\";\n };\n taxIdCollection: \"optional\" | \"required\" | \"disabled\";\n billingAddressCollection: \"required\" | \"auto\";\n shipping?: {\n allowedCountries: string[];\n shippingRateIds?: string[] | undefined;\n } | undefined;\n customerCreation: \"always\" | \"if_required\";\n invoiceCreation: boolean;\n paymentMethodConfiguration?: string | undefined;\n };\n}","validateStripeFrontConfig":"/**\n * Helper to validate frontend config at runtime\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateStripeFrontConfig(config: unknown): {\n [x: string]: {\n name: string;\n price: string;\n currency: string;\n description?: string | undefined;\n features?: string[] | undefined;\n priceId?: string | undefined;\n unitAmount?: number | undefined;\n productName?: string | undefined;\n allowPromotionCodes?: boolean | undefined;\n };\n}","validateSubscriptionClaims":"/**\n * Validate subscription claims\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateSubscriptionClaims(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","validateSubscriptionData":"/**\n * Validate subscription data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateSubscriptionData(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","validateUserSubscription":"/**\n * Validate user subscription data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateUserSubscription(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","validateWebhookEvent":"/**\n * Validate webhook event\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateWebhookEvent(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","AIAPI":"/** AI API surface - returned by useAIChat, degraded when @donotdev/ai not installed */\ninterface AIAPI {\n /** Conversation messages */\n messages: AIMessage[];\n /** Send a message */\n append: (content: string) => void;\n /** Stop current stream */\n stop: () => void;\n /** Whether a response is streaming */\n isLoading: boolean;\n /** Current error */\n error: Error | undefined;\n /** Clear conversation */\n clearMessages: () => void;\n /** Whether AI is available (auth + consent) */\n isAvailable: boolean;\n /** Current input value (controlled) */\n input: string;\n /** Set input value */\n setInput: (value: string) => void;\n /** Submit the current input */\n handleSubmit: (e?: any) => void;\n /** Cost tracking (billed cost only - provider cost is server-side only) */\n cost: {\n lastCost: AICostResult | null;\n sessionCost: AICostResult;\n formattedBilledCost: string;\n };\n /** Tool calls from the latest assistant response */\n toolCalls: AIToolCall[];\n}","AIChatRequest":"/** Request payload for an AI chat completion. */\ntype AIChatRequest = v.InferOutput<typeof AIChatRequestSchema>;","AIChatResponse":"/** Response payload from an AI chat completion. */\ntype AIChatResponse = v.InferOutput<typeof AIChatResponseSchema>;","AIConfig":"/** Configuration for AI feature (consumer-facing) */\ninterface AIConfig {\n provider: AIProvider;\n model?: string;\n maxTokens?: number;\n temperature?: number;\n systemPrompt?: string;\n}","AICostConfig":"/** Consumer-facing cost configuration */\ninterface AICostConfig {\n /** Markup multiplier for rebilling (provider cost x markup = billed cost) */\n markup: number;\n /** Monthly token budget per user (0 = unlimited) */\n monthlyBudgetTokens: number;\n /** Whether to show cost to end users (false = admin only) */\n showCostToUsers: boolean;\n /** Currency for display */\n displayCurrency: string;\n}","AICostEvent":"/** Real-time cost event for billing integration */\ninterface AICostEvent {\n type: 'cost_update';\n requestId: string;\n cost: AICostResult;\n cumulative: AICostResult;\n}","AICostRecord":"/** Server-side cost record (written per AI request) */\ninterface AICostRecord {\n userId: string;\n model: string;\n provider: string;\n usage: AIUsage;\n providerCost: number;\n billedCost: number;\n markup: number;\n timestamp: string;\n requestId: string;\n}","AICostResult":"/** Cost calculation result */\ninterface AICostResult {\n /** Raw provider cost in USD (server-side only, never expose to end users) */\n providerCost: number;\n /** Marked-up cost for consumer billing (what users owe) */\n billedCost: number;\n /** Markup multiplier applied */\n markup: number;\n /** Breakdown */\n breakdown: {\n promptTokens: number;\n completionTokens: number;\n promptCost: number;\n completionCost: number;\n };\n}","AIErrorCode":"/** AI error code type (derived from AI_ERROR_CODES constant) */\ntype AIErrorCode = (typeof AI_ERROR_CODES)[keyof typeof AI_ERROR_CODES];","AIMessage":"/** A single message in an AI chat conversation. */\ntype AIMessage = v.InferOutput<typeof AIMessageSchema>;","AIModelPricing":"/** Per-model token pricing */\ninterface AIModelPricing {\n /** Cost per 1M input tokens in USD */\n promptPer1M: number;\n /** Cost per 1M output tokens in USD */\n completionPer1M: number;\n /** Currency code */\n currency: 'usd';\n}","AIProvider":"/** AI provider type */\ntype AIProvider = (typeof AI_PROVIDERS)[keyof typeof AI_PROVIDERS];","AIProviderConfig":"/** Configuration for an AI provider backend. */\ntype AIProviderConfig = v.InferOutput<typeof AIProviderConfigSchema>;","AIRateLimitConfig":"/** Rate limit configuration for AI handler */\ninterface AIRateLimitConfig {\n /** Maximum requests per window */\n maxRequests: number;\n /** Window duration in milliseconds */\n windowMs: number;\n}","AIRouteConfig":"/** AI route configuration (server-side) */\ninterface AIRouteConfig {\n /** AI provider */\n provider: AIProvider;\n /** Model ID */\n model?: string;\n /** Max output tokens */\n maxTokens?: number;\n /** Temperature */\n temperature?: number;\n /** System prompt */\n systemPrompt?: string;\n /** Cost configuration */\n cost?: AICostConfig;\n /** Rate limit configuration */\n rateLimitConfig?: AIRateLimitConfig;\n /** Tool definitions available to the model */\n tools?: Record<string, AIToolDefinition>;\n}","AITierId":"/** AI tier identifier derived from AI_TIERS constant. */\ntype AITierId = (typeof AI_TIERS)[keyof typeof AI_TIERS]['id'];","AIToolCall":"/** Result of a tool call made by the model */\ninterface AIToolCall {\n /** Tool call ID (from provider) */\n id: string;\n /** Tool name */\n name: string;\n /** Parsed arguments */\n args: Record<string, unknown>;\n}","AIToolDefinition":"/** AI tool definition - JSON Schema based, provider-agnostic */\ninterface AIToolDefinition {\n /** Tool description (sent to the model) */\n description: string;\n /** Tool parameters as JSON Schema object */\n parameters: {\n type: 'object';\n properties: Record<string, AIToolParameter>;\n required?: string[];\n };\n}","AIToolParameter":"/** JSON Schema property definition for AI tool parameters */\ninterface AIToolParameter {\n /** JSON Schema type */\n type: 'string' | 'number' | 'boolean' | 'array' | 'object';\n /** Parameter description (sent to the model) */\n description?: string;\n /** Enum constraint */\n enum?: string[];\n /** Array items schema */\n items?: AIToolParameter;\n /** Object properties */\n properties?: Record<string, AIToolParameter>;\n /** Required property names (for object type) */\n required?: string[];\n}","AIUsage":"/** Token usage statistics for an AI completion. */\ntype AIUsage = v.InferOutput<typeof AIUsageSchema>;","AccountLinkResult":"/**\n * Represents the outcome of an attempt to link an additional authentication provider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AccountLinkResult {\n /** Indicates whether the overall linking process was successful */\n success: boolean;\n /** The provider that was linked */\n provider: string;\n /** Error message if the linking failed */\n error?: string;\n /** Additional data about the linked account */\n data?: Record<string, any>;\n}","AccountLinkingInfo":"/**\n * Information stored in sessionStorage for account linking flow\n * Firebase 12.3 stores credentials, we only store UI state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AccountLinkingInfo {\n email: string;\n existingProvider: AuthPartnerId;\n newProvider: string;\n timestamp: number;\n}","AdminCheckHookResult":"/**\n * Result type for the useAdminCheck hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AdminCheckHookResult {\n isAdmin: boolean;\n isLoading: boolean;\n}","AdminClaims":"/**\n * Defines custom claims specifically for administrative users.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AdminClaims {\n /** Flag indicating if the user has administrative privileges */\n isAdmin: boolean;\n /** Optional role or permission level */\n role?: string;\n /** Optional department or team */\n department?: string;\n /** Additional admin-specific claims */\n [key: string]: any;\n}","AggregateConfig":"/**\n * Aggregation configuration for entity analytics\n *\n * @example\n * ```typescript\n * const carsAnalyticsConfig: AggregateConfig = {\n * metrics: [\n * { field: '*', operation: 'count', as: 'total' },\n * { field: 'price', operation: 'sum', as: 'totalValue' },\n * { field: 'price', operation: 'avg', as: 'avgPrice' },\n * ],\n * groupBy: [\n * {\n * field: 'status',\n * metrics: [\n * { field: '*', operation: 'count', as: 'count' },\n * { field: 'price', operation: 'sum', as: 'value' },\n * ],\n * },\n * ],\n * where: [['isActive', '==', true]],\n * };\n * ```\n */\ninterface AggregateConfig {\n /** Top-level metrics (computed on entire collection) */\n metrics?: MetricDefinition[];\n /** Group by configurations */\n groupBy?: GroupByDefinition[];\n /** Optional global filters */\n where?: Array<[string, AggregateFilterOperator | string, unknown]>;\n}","AggregateFilterOperator":"/** Filter operator type for aggregation queries. */\ntype AggregateFilterOperator = (typeof AGGREGATE_FILTER_OPERATORS)[keyof typeof AGGREGATE_FILTER_OPERATORS];","AggregateOperation":"/** Aggregation operation type derived from AGGREGATE_OPERATIONS constant. */\ntype AggregateOperation = (typeof AGGREGATE_OPERATIONS)[keyof typeof AGGREGATE_OPERATIONS];","AggregateRequest":"/**\n * Request payload for aggregate function calls\n */\ninterface AggregateRequest {\n /** Optional runtime filters (merged with config filters) */\n where?: Array<[string, AggregateFilterOperator | string, unknown]>;\n /** Optional date range filter */\n dateRange?: {\n field: string;\n start?: string;\n end?: string;\n };\n}","AggregateResponse":"/**\n * Response from aggregate function\n */\ninterface AggregateResponse {\n /** Computed top-level metrics */\n metrics: Record<string, number | null>;\n /** Grouped metrics by field */\n groups: Record<string, Record<string, Record<string, number | null>>>;\n /** Metadata about the aggregation */\n meta: {\n collection: string;\n totalDocs: number;\n computedAt: string;\n };\n}","AnyEntity":"/**\n * Widened entity type for props and APIs that accept any `defineEntity()` result\n * without casting to default {@link Entity}.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype AnyEntity = Entity<Record<string, EntityField>>;","AnyFieldValue":"/**\n * Any valid field value - includes built-in types plus custom registered types\n * Uses `unknown` since consumers can register custom field types via RegisterFieldType\n */\ntype AnyFieldValue = unknown;","AnyValibotSchema":"/**\n * A valibot schema with an inferable output type. Accepts the generic base\n * schema shape used across the monorepo without locking to a specific issue type.\n */\ntype AnyValibotSchema = v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;","ApiResponse":"/**\n * Generic API response format for consistent error handling\n * @template T - The type of data in the response\n */\ninterface ApiResponse<T> {\n /** Indicates whether the operation was successful */\n success: boolean;\n /** The data returned by the operation (if successful) */\n data?: T;\n /** Error information (if the operation failed) */\n error?: {\n /** A machine-readable error code */\n code: string;\n /** A human-readable error message */\n message: string;\n };\n}","AppConfig":"/** Top-level application configuration passed to DoNotDevProvider. */\ninterface AppConfig {\n /** App metadata and branding */\n app?: AppMetadata;\n /** Authentication routes - partial override of defaults */\n auth?: Partial<AuthConfig> | false;\n /** SEO configuration (set to false to disable) */\n seo?: SEOConfig | false;\n /** Favicon configuration (set to false to disable) */\n favicon?: FaviconConfig | false;\n /** Layout preset for store initialization (defaults to 'landing' if invalid/empty) */\n preset?: string;\n /** Custom presets — same shape as built-in presets, keyed by name */\n customPresets?: Record<string, PresetConfig>;\n /** Feature flags */\n features?: FeaturesConfig;\n /** Query cache configuration (defaults: 5min staleTime, refetch on focus/reconnect) */\n query?: QueryConfig;\n /**\n * Server-side rendering (Next adapter). **Defaults to `true`** — generated page\n * wrappers render directly and the provider tree renders on the server, so page\n * content is present in the initial HTML (real, crawlable SSR). Set to `false`\n * to opt OUT and restore the legacy client-only render (content appears only\n * after hydration). The provider tree is store-driven, so SSR routes render\n * dynamically at request time.\n */\n ssr?: boolean;\n}","AppCookieCategories":"/**\n * App cookie categories type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AppCookieCategories = Partial<DoNotDevCookieCategories> & {\n necessary: boolean;\n}","AppMetadata":"/**\n * App metadata and branding configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppMetadata {\n /** Application name */\n name?: string;\n /** Short application name for mobile/compact displays (defaults to name if not set) */\n shortName?: string;\n /** Application description */\n description?: string;\n /** Social and external links */\n links?: {\n /** GitHub repository URL */\n github?: string;\n /** Twitter/X profile URL */\n twitter?: string;\n /** LinkedIn profile URL */\n linkedin?: string;\n /** Support/contact URL */\n support?: string;\n /** Documentation URL */\n docs?: string;\n /** Blog URL */\n blog?: string;\n };\n /** Footer configuration\n * - `null`: Explicitly hide footer\n * - `undefined`: Use framework default footer\n * - `{ copyright?: ..., legalLinks?: ... }`: Custom footer configuration\n */\n footer?: {\n /** Copyright configuration\n * - `null`: Hide copyright\n * - `undefined`: Use default (© YEAR appName. All rights reserved)\n * - `string`: Custom copyright text\n */\n copyright?: null | string;\n /** Legal links configuration\n * - `null`: Hide legal links\n * - `Array<{ path, label }>`: Custom legal links (labels can be i18n keys via maybeTranslate)\n * - `undefined`: Use framework defaults (Privacy Policy, Terms of Service with i18n labels)\n */\n legalLinks?: null | Array<{\n path: string;\n label: string;\n }>;\n } | null;\n /** Additional application metadata */\n metadata?: Record<string, any>;\n}","AppProvidersProps":"/**\n * Application providers props\n *\n * Clean, minimal API for configuring application providers with smart defaults.\n *\n * @example\n * ```typescript\n * // Minimal configuration\n * <ViteAppProviders\n * config={{ app: { name: 'My App' } }}\n * />\n *\n * // Full configuration\n * <ViteAppProviders\n * config={{\n * app: { name: 'My App' },\n * auth: { authRoute: '/signin' },\n * seo: {},\n * layout: { preset: 'landing' },\n * features: { debug: true }\n * }}\n * layout={{\n * header: { end: () => <LoginButton /> },\n * footer: () => <CustomFooter />\n * }}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppProvidersProps {\n /**\n * Consolidated application configuration\n *\n * All configuration is optional with smart defaults.\n * Pass only what you need to override.\n */\n config?: AppConfig;\n /**\n * Layout configuration - simple API for customizing layout\n *\n * @example\n * ```typescript\n * // Preset only\n * layout={{ preset: 'admin' }}\n *\n * // Slot override\n * layout={{ header: { end: () => <MyButton /> } }}\n *\n * // Full override\n * layout={{ header: () => <CustomHeader /> }}\n * ```\n */\n layout?: LayoutConfig;\n /**\n * Child components\n *\n * Custom routing content. When provided, overrides framework routing.\n */\n children?: ReactNode;\n /**\n * Custom store configurations\n *\n * Register Zustand stores to benefit from shell loader, retry logic,\n * error handling. Critical stores block render.\n *\n * @example\n * ```typescript\n * customStores={[{\n * name: 'dndop',\n * type: 'critical',\n * store: useDndopStore,\n * }]}\n * ```\n */\n customStores?: CustomStoreConfig[];\n}","AssetsPluginConfig":"/**\n * Assets Plugin Configuration\n * @description Configuration for static asset management\n */\ninterface AssetsPluginConfig {\n /** Mapping of asset paths to asset metadata */\n mapping: Record<string, any>;\n /** SVG content of logo.svg for inline rendering with CSS variable theming */\n logoSvgContent?: string | null;\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of discovered assets */\n totalAssets: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","AttemptRecord":"/**\n * Internal structure used by RateLimiter to store attempt timestamps and block info.\n * @private\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AttemptRecord {\n /** Array of attempts with timestamps and optional identifiers */\n attempts: Array<{\n /** When the attempt was made */\n timestamp: number;\n /** Optional identifier (e.g., email, username) */\n identifier?: string;\n }>;\n /** Timestamp when the block expires, or null if not blocked */\n blockUntil: number | null;\n /** Number of consecutive times blocking occurred (for exponential backoff) */\n blockCount: number;\n}","AuditEvent":"/**\n * A single structured audit log entry.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuditEvent {\n type: AuditEventType;\n timestamp: string;\n userId?: string;\n collection?: string;\n docId?: string;\n ip?: string;\n userAgent?: string;\n metadata?: Record<string, string | number | boolean>;\n}","AuditEventType":"/**\n * Audit event types (SOC2 CC6, CC7, C1, P1-P8).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuditEventType = 'auth.login.success' | 'auth.login.failure' | 'auth.logout' | 'auth.locked' | 'auth.unlocked' | 'auth.mfa.enrolled' | 'auth.mfa.challenged' | 'auth.session.expired' | 'auth.password.reset' | 'auth.signup.consent' | 'auth.role.changed' | 'crud.create' | 'crud.read' | 'crud.update' | 'crud.delete' | 'crud.bulk' | 'pii.access' | 'pii.export' | 'pii.erase' | 'rate_limit.exceeded' | 'anomaly.detected' | 'config.changed';","AuthAPI":"/**\n * Auth API type - complete interface for useAuth hook\n *\n * This interface defines all properties available through useAuth('propertyName').\n * Properties are categorized by their behavior:\n * - **State** (reactive): Re-renders when value changes\n * - **Methods** (stable): Never re-renders, always same reference\n * - **Computed** (derived): Re-renders when dependencies change\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthAPI {\n user: AuthUser | null;\n userProfile: UserProfile | null;\n userSubscription: UserSubscription | null;\n loading: boolean;\n error: AuthError | null;\n emailVerification: {\n status: string;\n error?: string;\n };\n passwordResetPending: boolean;\n partnerError: {\n partnerId: AuthPartnerId;\n error: string;\n } | null;\n /**\n * Unified feature status - single source of truth for auth state.\n * Replaces deprecated boolean flags. See AuthState.status for detailed lifecycle.\n */\n status: FeatureStatus;\n getPartnerState: (partnerId: AuthPartnerId) => string;\n setPartnerState: (partnerId: AuthPartnerId, state: string, error?: string) => void;\n hasRole: (role: string) => Promise<boolean>;\n hasTier: (tier: string) => Promise<boolean>;\n hasFeature: (feature: string) => Promise<boolean>;\n getCustomClaims: () => Record<string, unknown>;\n getCustomClaim: (claim: string) => unknown;\n signInWithEmail: (email: string, password: string) => Promise<AuthResult | null>;\n createUserWithEmail: (email: string, password: string, metadata?: SignUpMetadata) => Promise<AuthResult | null>;\n signInWithPartner: (partnerId: AuthPartnerId, method?: string) => Promise<AuthResult | null>;\n linkWithPartner: (partnerId: AuthPartnerId, method?: string) => Promise<AuthResult | null>;\n signInWithGoogleCredential: (credential: string) => Promise<AuthResult | null>;\n signOut: () => Promise<void>;\n sendPasswordResetEmail: (email: string) => Promise<void>;\n updatePassword: (newPassword: string) => Promise<void>;\n verifyPasswordResetCode: (code: string) => Promise<string | null>;\n confirmPasswordReset: (code: string, newPassword: string) => Promise<void>;\n sendEmailVerification: () => Promise<void>;\n getEmailVerificationStatus: () => Promise<{\n status: string;\n }>;\n isEmailVerificationEnabled: () => Promise<boolean>;\n sendSignInLinkToEmail: (email: string, settings?: any) => Promise<void>;\n signInWithEmailLink: (email: string, link?: string) => Promise<AuthResult | null>;\n isSignInWithEmailLink: (link?: string) => boolean;\n getCurrentUser: () => Promise<AuthUser | null>;\n reauthenticateWithPassword: (password: string) => Promise<void>;\n reauthenticateWithProvider: (partnerId: AuthPartnerId, method?: AuthMethod) => Promise<void>;\n deleteAccount: (password?: string) => Promise<void>;\n setRememberMe: (remember: boolean) => Promise<void>;\n isAuthenticated: boolean;\n userRole: string;\n userTier: string;\n /**\n * Capability-based access control object.\n * Usage: `const can = useAuth('can'); if (can.edit('licenses')) { ... }`\n */\n can: CanAPI;\n isAvailable: boolean;\n}","AuthActions":"/**\n * Authentication actions interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthActions {\n setPartnerState: (partnerId: AuthPartnerId, state: AuthPartnerState, error?: AuthError) => void;\n getPartnerState: (partnerId: AuthPartnerId) => AuthPartnerState;\n clearAllPartnerStates: () => void;\n setAuthenticated: (user: AuthUser, subscription: UserSubscription, profile: UserProfile) => void;\n setUnauthenticated: () => void;\n setAuthLoading: (loading: boolean) => void;\n setAuthError: (error: AuthError) => void;\n clearAuthError: () => void;\n /** Set unified status - single source of truth */\n setStatus: (status: FeatureStatus) => void;\n getCustomClaim: (claim: string) => unknown;\n getCustomClaims: () => Record<string, unknown>;\n emailVerification: {\n status: EmailVerificationStatus;\n error?: string;\n };\n setPasswordResetPending: (pending: boolean) => void;\n setLoading: (loading: boolean) => void;\n setError: (error: AuthError) => void;\n clearError: () => void;\n reset: () => void;\n setAuthService: (authService: unknown) => void;\n getCustomClaimLocal: (claim: string) => unknown;\n getCustomClaimsLocal: () => Record<string, unknown>;\n setEmailVerificationStatus: (status: EmailVerificationStatus, error?: string) => void;\n setUserProfile: (profile: UserProfile) => void;\n setUserSubscription: (subscription: UserSubscription) => void;\n}","AuthConfig":"/**\n * Authentication route configuration\n *\n * Configure redirect routes for authentication and authorization failures.\n * Also configures AuthHeader UI behavior (login page, user menu, etc.).\n * All routes are optional with security-first defaults.\n *\n * @example\n * ```typescript\n * const authConfig: AuthConfig = {\n * authRoute: '/signin',\n * roleRoute: '/403',\n * tierRoute: '/pricing',\n * loginPath: '/login', // Optional: links to login page (undefined = show providers in header)\n * profilePath: '/account',\n * authMenuPaths: ['/dashboard', '/settings']\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthConfig {\n /** Route to redirect when authentication required (default: '/') */\n authRoute?: string;\n /** Route to redirect when role insufficient (default: '/404') */\n roleRoute: string;\n /** Route to redirect when tier insufficient (default: '/404') */\n tierRoute: string;\n /** Optional: Path to login page. If provided, AuthHeader links to login page. If undefined (default), shows providers in header */\n loginPath?: string;\n /** Optional: Path to password reset callback page (default: '/auth/reset-password'). Framework auto-handles the route. */\n resetPasswordPath?: string;\n /** Optional: Path to profile page (default: '/profile') */\n profilePath?: string;\n /**\n * Optional: Custom menu items for authenticated user menu dropdown.\n * Supports route-based items with paths (auto-creates Link).\n * Icons are auto-resolved from route discovery (PageMeta.icon) if not provided.\n * For items with onClick handlers, use AuthMenu customItems prop instead.\n *\n * @example\n * ```typescript\n * authMenuItems: [\n * { path: '/dashboard' }, // icon auto-resolved from route\n * { path: '/settings', label: 'Settings' }, // override label, icon from route\n * { path: '/billing', icon: 'CreditCard' } // override icon\n * ]\n * ```\n */\n authMenuItems?: Array<{\n /** Route path (creates Link automatically) */\n path: string;\n /** Optional label (falls back to navigation item label or path segment) */\n label?: string;\n /** Optional Lucide icon name (string) - overrides route discovery icon */\n icon?: string;\n }>;\n /**\n * Optional function to handle custom data deletion before account removal\n * Framework will try/catch this - failures won't block account deletion\n *\n * @example\n * ```typescript\n * deleteUserFunction: async (userId: string) => {\n * // Cancel Stripe subscriptions\n * await fetch('/api/billing/cancel', { method: 'POST' });\n *\n * // Delete Firestore user data\n * await deleteDoc(doc(db, 'users', userId));\n *\n * // Custom cleanup\n * await myCustomCleanup(userId);\n * }\n * ```\n */\n deleteUserFunction?: (userId: string) => Promise<void>;\n}","AuthContextValue":"/**\n * Authentication context value interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthContextValue {\n /** The currently authenticated user object, or null if unauthenticated */\n user: AuthUser | null;\n /** Whether the user is currently authenticated */\n authenticated: boolean;\n /** Whether an authentication operation is in progress */\n loading: boolean;\n /** Current error message, or null if no error */\n error: string | null;\n /** The user's role */\n role: UserRole;\n /** The user's subscription information, or null if unauthenticated or not yet loaded */\n subscription: SubscriptionInfo | null;\n /** Current authentication token */\n token: string | null;\n /** Token status */\n tokenStatus: TokenStatus;\n /** When the token expires */\n tokenExpiresAt: Date | null;\n /** Sign in with email and password */\n signIn: (email: string, password: string) => Promise<void>;\n /** Sign up with email and password */\n signUp: (email: string, password: string) => Promise<void>;\n /** Sign out the current user */\n signOut: () => Promise<void>;\n /** Reset password for email */\n resetPassword: (email: string) => Promise<void>;\n /** Update user profile */\n updateProfile: (updates: Partial<AuthUser>) => Promise<void>;\n /** Refresh the authentication token */\n refreshToken: () => Promise<string | null>;\n /** Get the current access token */\n getAccessToken: () => Promise<string | null>;\n /** Check if user has a specific role */\n hasRole: (role: UserRole) => boolean;\n /** Check if user has access to a feature */\n hasFeature: (featureId: string) => boolean;\n /** Check if user has access to a tier */\n hasTier: (requiredTier: string) => boolean;\n}","AuthCoreHookResult":"/**\n * Result type for the useAuthCore hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthCoreHookResult {\n user: AuthUser | null;\n authenticated: boolean;\n loading: boolean;\n error: string | null;\n signIn: (email: string, password: string) => Promise<void>;\n signUp: (email: string, password: string) => Promise<void>;\n signOut: () => Promise<void>;\n resetPassword: (email: string) => Promise<void>;\n updateProfile: (updates: Partial<AuthUser>) => Promise<void>;\n}","AuthError":"/**\n * Error type that supports Firebase errors and custom errors with code property\n * Note: DoNotDevError is avoided for account linking to preserve Firebase error codes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthError = (Error & {\n code?: string;\n}","AuthEventData":"/**\n * Authentication event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthEventData {\n userId?: string;\n authUser?: any;\n userProfile?: any;\n subscription?: any;\n token?: string;\n permissions?: string[];\n partnerId?: string;\n error?: string;\n errorCode?: string;\n isLoading?: boolean;\n timestamp: Date;\n metadata?: Record<string, any>;\n}","AuthEventKey":"/**\n * Type for authentication event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthEventKey = keyof typeof AUTH_EVENTS;","AuthEventName":"/**\n * Type for authentication event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthEventName = (typeof AUTH_EVENTS)[AuthEventKey];","AuthHardeningContext":"/**\n * Minimal auth hardening interface exposed by SecurityContext.\n * Auth adapters delegate lockout to this when security is injected,\n * ensuring a single lockout source of truth that respects user config.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthHardeningContext {\n /** @throws if identifier is currently locked out */\n checkLockout(identifier: string): void;\n /** Record a failed auth attempt; may trigger lockout */\n recordFailure(identifier: string): void;\n /** Clear failure counter on successful auth */\n recordSuccess(identifier: string): void;\n}","AuthMethod":"/**\n * Authentication method type\n * 'popup' - Opens OAuth popup window (better for dev/localhost)\n * 'redirect' - Redirects to OAuth provider (better for production)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthMethod = 'redirect' | 'popup';","AuthPartner":"/**\n * Authentication partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartner = v.InferOutput<typeof authPartnerSchema>;","AuthPartnerHookResult":"/**\n * Result type for the useAuthPartner hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthPartnerHookResult {\n /** Current authentication state from the partner */\n partnerState: AuthPartnerState;\n /** Whether a connection operation is in progress */\n isConnecting: boolean;\n /** Whether the partner is currently connected */\n isConnected: boolean;\n /** Current error message, or null if no error */\n error: Error | null;\n /** Function to connect to this partner */\n connect: (options?: {\n redirectUri?: string;\n onSuccess?: (result: AuthPartnerResult) => void;\n onError?: (error: Error) => void;\n }) => Promise<void>;\n /** Function to disconnect from this partner */\n disconnect: () => Promise<boolean>;\n}","AuthPartnerId":"/**\n * Authentication partner ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartnerId = keyof typeof AUTH_PARTNERS;","AuthPartnerResult":"/**\n * Auth partner result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthPartnerResult extends PartnerResult {\n partnerId: AuthPartnerId;\n metadata?: Record<string, any>;\n}","AuthPartnerState":"/**\n * Auth partner state type - simple string constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartnerState = (typeof AUTH_PARTNER_STATE)[keyof typeof AUTH_PARTNER_STATE];","AuthProvider":"/**\n * Authentication provider interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthProvider {\n /**\n * Initialize the auth provider\n */\n initialize(): Promise<void>;\n /**\n * Get the current user\n */\n getCurrentUser(): Promise<AuthUser | null>;\n /**\n * Sign in with email and password\n */\n signInWithEmailAndPassword(email: string, password: string): Promise<AuthUser>;\n /**\n * Sign up with email and password\n */\n createUserWithEmailAndPassword(email: string, password: string, metadata?: SignUpMetadata): Promise<AuthUser>;\n /**\n * Sign out the current user\n */\n signOut(): Promise<void>;\n /**\n * Reset password for email\n */\n sendPasswordResetEmail(email: string): Promise<void>;\n /**\n * Update user profile\n */\n updateUserProfile(updates: Partial<AuthUser>): Promise<void>;\n /**\n * Get the current access token\n */\n getAccessToken(): Promise<string | null>;\n /**\n * Refresh the authentication token\n */\n refreshToken(): Promise<string | null>;\n /**\n * Subscribe to auth state changes\n */\n onAuthStateChanged(callback: (user: AuthUser | null) => void): UnsubscribeFn;\n /**\n * Check if user has a specific role\n */\n hasRole(role: UserRole): Promise<boolean>;\n /**\n * Check if user has access to a feature\n */\n hasFeature(featureId: string): Promise<boolean>;\n /**\n * Check if user has access to a tier\n */\n hasTier(requiredTier: string): Promise<boolean>;\n signInWithEmail(email: string, password: string): Promise<AuthResult | null>;\n createUserWithEmail(email: string, password: string, metadata?: SignUpMetadata): Promise<AuthResult | null>;\n signInWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;\n linkWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;\n signInWithGoogleCredential(credential: string): Promise<AuthResult | null>;\n updatePassword(newPassword: string): Promise<void>;\n /**\n * Verify a password reset code from the email callback link.\n * Returns the email address associated with the code.\n * @returns email address, or null if code is invalid/expired\n */\n verifyPasswordResetCode?(code: string): Promise<string | null>;\n /**\n * Confirm a password reset with the code from the email and the new password.\n * After success, user can sign in with the new password.\n */\n confirmPasswordReset?(code: string, newPassword: string): Promise<void>;\n /**\n * Get the password reset redirect path for this provider.\n * Used to build the redirect URL in password reset emails.\n */\n getPasswordResetRedirectUrl?(): string;\n sendEmailVerification(): Promise<void>;\n sendSignInLinkToEmail(email: string, actionCodeSettings?: {\n url: string;\n handleCodeInApp: boolean;\n }): Promise<void>;\n signInWithEmailLink(email: string, emailLink?: string): Promise<AuthResult | null>;\n isSignInWithEmailLink(emailLink?: string): boolean;\n getEmailVerificationStatus(): Promise<{\n status: string;\n }>;\n isEmailVerificationEnabled(): Promise<boolean>;\n reauthenticateWithPassword(password: string): Promise<void>;\n reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;\n deleteAccount(password?: string): Promise<void>;\n /**\n * Set session persistence (remember me).\n * Provider-specific: Firebase uses browserLocal/browserSession persistence,\n * Supabase uses cookie duration, etc.\n * No-op if the provider doesn't support persistence control.\n *\n * @param remember - true for persistent session, false for session-only\n */\n setRememberMe?(remember: boolean): Promise<void>;\n /**\n * Signed-in state read synchronously from the request cookies, without the auth\n * service. Lets the server render, and the client's hydration pass, show the real\n * signed-in state before the provider has initialised.\n * Display only: never an authorisation decision (the cookie is not verified).\n * Implemented by providers that keep their session in cookies (Supabase via\n * `createBrowserClient`); absent otherwise.\n *\n * @param cookieHeader - The request's `Cookie` header (`a=1; b=2`)\n * @returns The snapshot (`user: null` = signed out), or `null` when the cookies\n * cannot tell\n */\n readSessionSnapshot?(cookieHeader: string): AuthSessionSnapshot | null;\n}","AuthProviderProps":"/**\n * Props for the AuthProvider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthProviderProps {\n /** Child components that will have access to the authentication context */\n children: ReactNode;\n}","AuthRedirectHookResult":"/**\n * Result type for the useAuthRedirect hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthRedirectHookResult {\n authenticated: boolean;\n isAdmin: boolean;\n isEmailVerified: boolean;\n hasSubscription: boolean;\n shouldRedirect: boolean;\n redirectTo?: string;\n}","AuthRedirectOperation":"/**\n * Auth partner redirect operations - DRY derived from AUTH_PARTNERS schema\n * Format: `oauth-${partnerId}` for OAuth partners, `auth-${partnerId}` for auth-only\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthRedirectOperation = `oauth-${AuthPartnerId}","AuthRedirectOptions":"/**\n * Options for redirect behavior\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthRedirectOptions {\n /** If true, only allow admin users */\n adminOnly?: boolean;\n /** If true, require email verification */\n requireEmailVerification?: boolean;\n /** If true, require subscription */\n requireSubscription?: boolean;\n /** Redirect URL if conditions not met */\n redirectTo?: string;\n}","AuthResult":"/**\n * Result of an authentication operation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthResult {\n /** The authenticated user */\n user: AuthUser;\n /** Whether the operation was successful */\n success: boolean;\n /** Whether this is a new user (for sign-up operations) */\n isNewUser?: boolean;\n /** Error message if the operation failed */\n error?: string;\n}","AuthSessionSnapshot":"/**\n * Signed-in state known from the request cookies, before the auth provider has\n * initialised (see AuthProvider.readSessionSnapshot). Display only.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ninterface AuthSessionSnapshot {\n /** The signed-in user, or `null` when signed out */\n user: AuthUser | null;\n /**\n * The session's access token while it is still valid, else absent. Server render\n * only: lets CRUD reads run as the visitor (ICrudAdapter.forAccessToken), so the\n * HTML carries the visitor's own data. The database verifies the token; the\n * framework never trusts it for anything else.\n */\n accessToken?: string;\n}","AuthState":"/**\n * Authentication state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthState {\n user: AuthUser | null;\n authenticated: boolean;\n userId: string | null;\n loading: boolean;\n error: AuthError;\n userProfile: UserProfile | null;\n userSubscription: UserSubscription | null;\n partnerStates: Record<AuthPartnerId, AuthPartnerState>;\n partnerError: {\n partnerId: AuthPartnerId;\n error: AuthError;\n } | null;\n emailVerification: {\n status: EmailVerificationStatus;\n error?: string;\n };\n /**\n * Password reset recovery mode.\n * Set by provider when PASSWORD_RECOVERY event fires (Supabase)\n * or when oobCode is detected in URL (Firebase).\n * Components use this to show the \"set new password\" UI.\n */\n passwordResetPending: boolean;\n authService: unknown;\n /**\n * Unified feature status - single source of truth for auth state.\n * Replaces deprecated boolean flags (initialized, authStateChecked).\n *\n * **Lifecycle timeline:**\n * 1. Store created → `status: 'initializing'` (show loader)\n * 2. Auth service init + first callback → `status: 'ready'` (normal operation)\n * 3. If feature disabled/unavailable → `status: 'degraded'` (protected routes redirect with error)\n * 4. If init fails → `status: 'error'` (protected routes redirect with error)\n *\n * **Guard behavior:**\n * - `degraded` + protected route → redirect to auth route with `?error=auth_unavailable`\n * - `error` + protected route → redirect to auth route with `?error=auth_error`\n * - `initializing` → show loader, don't redirect\n * - `ready` → perform normal auth checks\n *\n * @see FEATURE_STATUS for possible values\n */\n status: FeatureStatus;\n}","AuthStateStore":"/**\n * Simple auth state store interface - only state, no mechanisms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthStateStore {\n authenticated: boolean;\n userId: string | null;\n user: AuthUser | null;\n role: UserRole;\n token: {\n token: string | null;\n expiresAt: Date | null;\n status: TokenStatus;\n };\n network: {\n online: boolean;\n connectionType: NetworkConnectionType;\n lastChecked: string;\n };\n rateLimit: Record<string, RateLimitState>;\n error: string | null;\n errorCode: string | undefined;\n loading: boolean;\n initialized: boolean;\n subscription: {\n tier: string;\n isActive: boolean;\n expiresAt: Date | null;\n features: string[];\n daysRemaining: number | null;\n };\n setAuthenticated: (authenticated: boolean, userId?: string | null) => void;\n setUser: (user: AuthUser | null) => void;\n setRole: (role: UserRole) => void;\n setToken: (token: string | null, expiresAt?: Date | null) => void;\n updateTokenStatus: (status: TokenStatus) => void;\n setNetworkStatus: (online: boolean, connectionType?: NetworkConnectionType) => void;\n setError: (error: string | null, errorCode?: string) => void;\n setLoading: (loading: boolean) => void;\n setSubscription: (subscription: {\n tier: string;\n isActive: boolean;\n expiresAt: Date | null;\n features: string[];\n daysRemaining: number | null;\n }) => void;\n setInitialized: (initialized: boolean) => void;\n clearError: () => void;\n reset: () => void;\n}","AuthStatus":"/**\n * Authentication status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthStatus = 'authenticated' | 'unauthenticated' | 'loading';","AuthTokenHookResult":"/**\n * Result type for the useAuthToken hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthTokenHookResult {\n token: string | null;\n status: TokenStatus;\n expiresAt: Date | null;\n refreshToken: () => Promise<string | null>;\n getAccessToken: () => Promise<string | null>;\n}","AuthUser":"/**\n * Type for authenticated user data\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthUser = v.InferOutput<typeof AuthUserSchema>;","BaseActions":"/**\n * Base actions for UI state management.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseActions<T> extends BaseStoreActions {\n /** Select or deselect an item */\n select: (item?: T) => void;\n /** Update active filters */\n setFilters: (filters: Record<string, any>) => void;\n /** Set the sorting configuration */\n setSort: (field: keyof T, direction: 'asc' | 'desc') => void;\n}","BaseCredentials":"/**\n * Base credentials interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseCredentials {\n expiresAt?: number;\n scope?: string[];\n}","BaseDocument":"/**\n * Basic document with ID and timestamps\n * @description All entity documents in the system should extend this interface\n */\ninterface BaseDocument {\n /** The unique identifier for the document */\n id: ID;\n /** When the document was created */\n createdAt: Timestamp;\n /** When the document was last updated */\n updatedAt: Timestamp;\n /** The ID of the user who created the document (if available) */\n createdById?: ID;\n /** The ID of the user who last updated the document (if available) */\n updatedById?: ID;\n}","BaseEntityFields":"/**\n * Base fields that all entities should have\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseEntityFields {\n /** Unique identifier for the entity */\n id: EntityField<'text'>;\n /** When the entity was created */\n createdAt: EntityField<'timestamp'>;\n /** When the entity was last updated */\n updatedAt: EntityField<'timestamp'>;\n /** Who created the entity */\n createdById: EntityField<'reference'>;\n /** Who last updated the entity */\n updatedById: EntityField<'reference'>;\n /**\n * Publication status for draft/publish/delete workflow\n * - 'draft': Document is incomplete, hidden from non-admin\n * - 'available': Document is published and visible (default)\n * - 'deleted': Soft-deleted, hidden from non-admin\n * - Consumer can extend with additional statuses (e.g., 'reserved', 'sold')\n */\n status: EntityField<'select'>;\n}","BasePartnerState":"/**\n * Base partner state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BasePartnerState {\n config: any;\n error: Error | null;\n}","BaseState":"/**\n * Base UI state for an entity.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseState<T> extends BaseStoreState {\n /** Currently selected item */\n selected?: T;\n /** Active filters */\n filters: Record<string, any>;\n /** Current sort configuration */\n sort?: {\n field: keyof T;\n direction: 'asc' | 'desc';\n };\n}","BaseStoreActions":"/**\n * Base store actions that all stores should implement\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseStoreActions {\n /** Set the store readiness state */\n setReady: (ready: boolean) => void;\n /** Set the loading state */\n setLoading: (loading: boolean) => void;\n /** Set the error state */\n setError: (error: string | null) => void;\n /** Clear the current error */\n clearError: () => void;\n /** Reset the store to initial state */\n reset: () => void;\n /**\n * Set the data resolved state (optional).\n * Only implement for stores with async data sources.\n *\n * For AuthStore: call when first onAuthStateChanged fires\n * For other stores: call when initial data load completes\n */\n setDataResolved?: (resolved: boolean) => void;\n}","BaseStoreState":"/**\n * Base store state that all stores should implement\n * Provides common properties for loading, error handling, and readiness\n *\n * **Lifecycle Timeline:**\n * 1. Store created → `isReady: false`, `isDataResolved: false`\n * 2. Service init complete → `isReady: true`, `isDataResolved: false`\n * 3. First async callback → `isReady: true`, `isDataResolved: true`\n *\n * @property isReady - Service is initialized and methods can be called\n * @property isDataResolved - First async data callback has fired (user/data resolved)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseStoreState {\n /** Whether the store is ready to be used by components */\n isReady: boolean;\n /** Whether the store is currently loading */\n isLoading: boolean;\n /** Current error message, or null if no error */\n error: string | null;\n /**\n * Whether Zustand persist middleware has finished rehydrating from storage.\n * Only present on stores created with persistOptions.\n * `false` before rehydration, `true` after. Non-persisted stores: undefined.\n */\n _hasHydrated?: boolean;\n /**\n * Whether the first async data callback has fired.\n * Optional - only needed for stores with async data sources (e.g., auth, realtime).\n *\n * For AuthStore: equivalent to `authStateChecked` (first onAuthStateChanged)\n * For other stores: set when initial data load completes\n */\n isDataResolved?: boolean;\n}","BaseUserProfile":"/**\n * Base user profile interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseUserProfile {\n id: string;\n name?: string;\n username?: string;\n email?: string;\n photoURL?: string;\n}","BasicUserInfo":"/**\n * Basic user information that can be shared in various contexts\n */\ninterface BasicUserInfo {\n /** The unique identifier for the user */\n id: ID;\n /** The user's display name (if available) */\n displayName?: string | null;\n /** The user's email address (if available) */\n email?: string | null;\n /** The URL of the user's profile photo (if available) */\n photoURL?: string | null;\n}","BeforeCheckoutHook":"/**\n * Hook called before Stripe checkout session creation.\n * Use for ownership checks and status validation.\n *\n * @example\n * ```typescript\n * const beforeCheckout: BeforeCheckoutHook = async (userId, options) =>\n * options.mode === 'subscription' && options.billingConfigKey !== 'pro_monthly'\n * ? { allowed: false, reason: 'Unknown plan' }\n * : { allowed: true };\n * ```\n *\n * @param userId - Authenticated user ID\n * @param options - Normalized request + 0.1.x checkout options (`mode`, `priceId`, `unitAmount`, `currency`...)\n * @param metadata - Request metadata (sanitized)\n * @returns Whether to allow checkout, optional reason (and 0.1.x dynamic-pricing overrides)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BeforeCheckoutHook = (userId: string, options: BeforeCheckoutOptions, metadata: Record<string, string>) => Promise<BeforeCheckoutResult>;","BeforeCheckoutOptions":"/**\n * Second argument of a `beforeCheckout` hook: the normalized request plus the\n * 0.1.x checkout options, so 0.1.x guards (`options.mode === 'subscription'`,\n * `options.priceId`) keep working.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype BeforeCheckoutOptions = Omit<CreateCheckoutSessionRequest, 'userId' | 'mode' | 'priceId' | 'metadata' | 'allowPromotionCodes'> & {\n /** Authenticated user ID (never the client value) */\n userId: string;\n /** Stripe mode of the session (request `mode`, else derived from the item type; StripeOrder: `payment`) */\n mode: CheckoutMode;\n /** Stripe price charged (request priceId, else the back config priceId). Undefined for dynamic pricing and StripeOrder. */\n priceId?: string;\n /** Request metadata as sent (before sanitization; 0.1.x behaviour) */\n metadata: Record<string, string>;\n /** Request value, default `true` (0.1.x behaviour) */\n allowPromotionCodes: boolean;\n}","BeforeCheckoutResult":"/**\n * Result of a beforeCheckout hook invocation. Blocks or allows checkout.\n * StripeOrder prices come from `resolveLineItems`, never from here.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BeforeCheckoutResult {\n /** Whether checkout is allowed to proceed */\n allowed: boolean;\n /** Reason for blocking (shown in error response) */\n reason?: string;\n /**\n * 0.1.x dynamic pricing only (request `unitAmount` + `productName`, no\n * `priceId`): replaces the amount/name before session creation. The amount\n * stays capped by the back config `maxUnitAmount`. Ignored otherwise.\n * @deprecated Prefer StripeOrder `resolveLineItems` for server-priced lines.\n */\n overrides?: {\n unitAmount?: number;\n productName?: string;\n };\n}","BillingAPI":"/**\n * Billing API type - complete interface for useStripeBilling hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAPI {\n /**\n * Unified feature status - single source of truth for billing state.\n * Replaces deprecated `loading` boolean flag.\n * - `initializing`: Billing is loading/initializing\n * - `ready`: Billing fully operational\n * - `degraded`: Billing unavailable (feature not installed/consent not given)\n * - `error`: Billing encountered error\n */\n status: FeatureStatus;\n error: string | null;\n /**\n * Whether a billing operation is in progress.\n * For redirect operations (checkout, portal), the hook automatically shows\n * a fullscreen overlay with operation-specific messaging.\n */\n loading: boolean;\n checkout: (options: CheckoutOptions) => Promise<StripeCheckoutResponse>;\n cancelSubscription: () => Promise<{\n success: boolean;\n endsAt: string;\n }>;\n changePlan: (newPriceId: string, billingConfigKey: string) => Promise<{\n success: boolean;\n }>;\n refreshStatus: () => Promise<void>;\n openCustomerPortal: (returnUrl?: string) => Promise<void>;\n clearError: () => void;\n isAvailable: boolean;\n}","BillingAdapter":"/** Billing adapter interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAdapter {\n createCheckoutSession(request: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;\n getProvider(): Promise<BillingProvider>;\n isAvailable(): Promise<boolean>;\n}","BillingAuthProvider":"/**\n * Auth operations the server billing code needs: read a user's custom claims\n * and write them back (subscription tier lives in the claims).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAuthProvider {\n getUser(userId: string): Promise<{\n customClaims?: Record<string, unknown>;\n }>;\n setCustomUserClaims(userId: string, claims: Record<string, unknown>): Promise<void>;\n}","BillingErrorCode":"/**\n * Billing-specific error codes for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingErrorCode = 'unknown' | 'unauthenticated' | 'invalid_request' | 'stripe_error' | 'subscription_not_found' | 'checkout_session_not_found' | 'webhook_verification_failed' | 'rate_limit_exceeded' | 'insufficient_permissions' | 'invalid_webhook_signature' | 'checkout_blocked';","BillingEvent":"/** Billing event types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEvent = {\n type: 'subscription_updated';\n data: unknown;\n}","BillingEventData":"/**\n * Billing event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingEventData {\n provider?: string;\n config?: Record<string, unknown>;\n invoice?: Record<string, unknown>;\n paymentMethod?: Record<string, unknown>;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","BillingEventKey":"/**\n * Type for billing event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEventKey = keyof typeof BILLING_EVENTS;","BillingEventName":"/**\n * Type for billing event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEventName = (typeof BILLING_EVENTS)[BillingEventKey];","BillingProvider":"/** Billing provider types - Stripe only\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingProvider = 'stripe';","BillingProviderConfig":"/** Billing provider configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingProviderConfig {\n provider: BillingProvider;\n apiKey?: string;\n webhookSecret?: string;\n publishableKey?: string;\n testMode?: boolean;\n}","BillingRedirectOperation":"/**\n * Billing-specific redirect operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingRedirectOperation = 'stripe-checkout' | 'stripe-portal';","Breakpoint":"/**\n * Breakpoint type definition for responsive design\n *\n * Defines the standard breakpoints used throughout the framework\n * for responsive layout and component behavior.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Breakpoint = 'mobile' | 'tablet' | 'laptop' | 'desktop';","BreakpointUtils":"/**\n * Breakpoint utilities interface\n *\n * Provides computed breakpoint state and helper methods\n * for responsive design logic.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BreakpointUtils {\n /** Current active breakpoint */\n current: Breakpoint;\n /** Current window width in pixels */\n width: number;\n /** Current window height in pixels */\n height: number;\n /** Whether current viewport is mobile (0-767px) */\n isMobile: boolean;\n /** Whether current viewport is tablet (768-1023px) */\n isTablet: boolean;\n /** Whether current viewport is laptop (1024-1439px) */\n isLaptop: boolean;\n /** Whether current viewport is desktop (1440px+) */\n isDesktop: boolean;\n /** Whether current viewport is mobile OR tablet (< 1024px) */\n isMobileOrTablet: boolean;\n /** Whether current viewport is laptop OR desktop (>= 1024px) */\n isLaptopOrDesktop: boolean;\n}","BuiltInFieldType":"/**\n * Built-in field type union (same as FieldType). Used internally to distinguish\n * framework field types from custom types registered via registerFieldType().\n */\ntype BuiltInFieldType = (typeof FIELD_TYPES)[number];","BulkAcrossBatch":"/**\n * One collection's worth of operations inside a {@link bulkAcross} call.\n *\n * Inserts may include a caller-provided `id` for cross-collection pre-minting:\n * mint the ID client-side, use it in both collections, and pass `dependsOn` to\n * ensure write order.\n *\n * @template T - Entity type for this batch's collection.\n *\n * @example\n * const customerId = generateUUID();\n * await bulkAcross([\n * {\n * collection: 'customers',\n * inserts: [{ id: customerId, ...customerData }],\n * schemas: { create: customerCreateSchema },\n * },\n * {\n * collection: 'inquiries',\n * inserts: [{ customerId, ...inquiryData }],\n * schemas: { create: inquiryCreateSchema },\n * dependsOn: ['customers'],\n * },\n * ]);\n *\n * @version 0.1.0\n * @since 0.3.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkAcrossBatch<T extends Record<string, unknown> = Record<string, unknown>> {\n /** Target collection name. */\n collection: string;\n /** Rows to insert. May include a caller-provided `id` for pre-minting. */\n inserts?: Array<CrudCreateInput<T> & {\n id?: string;\n }>;\n /** Rows to update (partial patches). */\n updates?: Array<{\n id: string;\n patch: Partial<T>;\n }>;\n /** Document IDs to delete. */\n deletes?: string[];\n /** Schemas for insert validation + PII resolution. */\n schemas: {\n create?: dndevSchema<T>;\n draft?: dndevSchema<T>;\n update?: dndevSchema<T>;\n };\n /**\n * Collections that must be written first.\n * Batches with no `dependsOn` run in parallel with other dependency-free batches.\n */\n dependsOn?: string[];\n}","BulkAcrossResult":"/**\n * Result of a {@link bulkAcross} call. Per-collection results keyed by collection name.\n *\n * @version 0.1.0\n * @since 0.3.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkAcrossResult {\n /** Per-collection {@link BulkResult}, keyed by collection name. */\n results: Record<string, BulkResult>;\n}","BulkOperations":"/**\n * Input shape for a bulk CRUD operation. All three fields are optional — callers\n * include only the buckets they need. Items are processed in input order per\n * bucket and returned in the same order in {@link BulkResult}.\n *\n * Semantics (enforced by the service, not the adapter):\n * - Atomic: all ops succeed or none do.\n * - Collision rejection: an id appearing in both `updates` and `deletes`, or both\n * `inserts` and `updates`, fails up-front with {@link BulkCollisionError}.\n * - Empty bulk (`{}`) is a no-op that returns a zeroed {@link BulkResult}\n * without hitting the adapter.\n *\n * @template T - Entity type for the collection. Must be an object so PII\n * encryption, cache merging and adapter mapping can treat each row as a\n * `Record<string, unknown>`.\n *\n * @example\n * const ops: BulkOperations<Event> = {\n * inserts: [{ title: 'A' }, { title: 'B' }],\n * updates: [{ id: 'e1', patch: { title: 'renamed' } }],\n * deletes: ['e2', 'e3'],\n * };\n *\n * @version 0.1.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkOperations<T extends Record<string, unknown>> {\n /** New rows to insert. IDs are server-assigned and returned in {@link BulkResult.insertedIds}. */\n inserts?: CrudCreateInput<T>[];\n /** Partial updates keyed by id. `patch` is a shallow merge on top of the stored row. */\n updates?: Array<{\n id: string;\n patch: Partial<T>;\n }>;\n /** IDs to delete. */\n deletes?: string[];\n}","BulkResult":"/**\n * Result of a bulk CRUD operation. Each id list preserves the input order of the\n * corresponding bucket in {@link BulkOperations}.\n *\n * @example\n * const r: BulkResult = await adapter.bulk('events', {\n * inserts: [{ title: 'A' }],\n * deletes: ['x'],\n * });\n * r.insertedIds; // ['evt_123']\n * r.deletedIds; // ['x']\n *\n * @version 0.1.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkResult {\n /** Server-assigned IDs for `inserts`, in input order. */\n insertedIds: string[];\n /** IDs that were updated, in input order. */\n updatedIds: string[];\n /** IDs that were deleted, in input order. */\n deletedIds: string[];\n}","BusinessEntity":"/**\n * Definition of a business entity without base fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BusinessEntity<out F extends Record<string, EntityField> = Record<string, EntityField>> {\n /** Name of the entity */\n name: string;\n /** Firestore collection name */\n collection: string;\n /**\n * i18n namespace for translations (defaults to `entity-${name.toLowerCase()}`)\n * @example \"entity-car\", \"entity-product\"\n * @default `entity-${name.toLowerCase()}`\n */\n namespace?: string;\n /**\n * Multi-tenancy scope configuration (optional)\n * When set, the scope field is auto-added and CRUD operations auto-inject/filter by scope\n *\n * @example\n * ```typescript\n * scope: { field: 'companyId', provider: 'company' }\n * ```\n */\n scope?: ScopeConfig;\n /**\n * Stakeholder ownership configuration (optional).\n * When set, drives Firestore rule condition (read/update), list/listCard query constraints,\n * and visibility: 'owner' field masking. Use for marketplace-style entities (e.g. schedules:\n * public when available, private to partner/customer when booked).\n *\n * @example\n * ```typescript\n * ownership: {\n * ownerFields: ['providerId', 'customerId'],\n * publicCondition: [{ field: 'status', op: '==', value: 'available' }],\n * }\n * ```\n */\n ownership?: EntityOwnershipConfig;\n /** Field definitions - name and label are required */\n fields: F;\n /** Form configuration for advanced forms */\n form?: FormConfig;\n /**\n * Fields to include in admin list responses (optional).\n * Used by EntityList for optimized admin table queries.\n * If not specified, all visible fields are returned.\n * 'id' is always included automatically.\n *\n * @example\n * ```typescript\n * listFields: ['id', 'make', 'model', 'status', 'createdAt']\n * ```\n */\n listFields?: string[];\n /**\n * Fields to include in public card list responses.\n * Accepts a flat array (auto-layout) or a slot-based `ListCardLayout` object.\n *\n * Each field value is formatted via `formatValue()` using its registered display formatter.\n * For `'number'` fields, use `unit` and `suffix` field options for rich display — no custom\n * type needed:\n * - `unit: 'm²'` → \"20m²\" (appended directly, no space)\n * - `suffix: 'fields.rent_suffix'` → \"700€ charges comprises\" (i18n key, space-separated)\n *\n * Use `titleSeparator` in `ListCardLayout` to control how multiple title fields are joined\n * (default `' '`).\n *\n * @example\n * ```typescript\n * // Flat — auto-slots first field as title, rest as content\n * listCardFields: ['images', 'make', 'price', 'year']\n *\n * // Slot-based — explicit card layout with separator\n * listCardFields: {\n * titleSeparator: ' - ',\n * title: ['district_code', 'size'], // e.g. \"Paris 20e arr. - 20m²\"\n * subtitle: ['rent'], // e.g. \"700€ charges comprises\"\n * content: ['pictures', 'nearby_stations'],\n * }\n * ```\n */\n listCardFields?: string[] | ListCardLayout;\n /**\n * Entity-level access control configuration.\n * Defines minimum role required for each CRUD operation.\n * Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n *\n * Defaults (via defineEntity):\n * - read: 'guest' (public read, field visibility handles sensitive data)\n * - create/update/delete: 'admin'\n *\n * @example\n * ```typescript\n * // Public inquiry form\n * access: { create: 'guest', read: 'admin' }\n *\n * // Members-only content\n * access: { read: 'user' }\n * ```\n */\n access?: EntityAccessConfig;\n /**\n * Unique key constraints for deduplication\n * Checked during create/update operations\n *\n * - Single field: `[{ fields: ['email'] }]`\n * - Composite: `[{ fields: ['vin', 'make'] }]`\n * - Multiple keys (OR): `[{ fields: ['email'] }, { fields: ['phone'] }]`\n *\n * @example\n * ```typescript\n * // Customer: email OR phone identifies (findOrCreate behavior)\n * uniqueKeys: [\n * { fields: ['email'], findOrCreate: true },\n * { fields: ['phone'], findOrCreate: true }\n * ]\n *\n * // Car: VIN is unique, skip for drafts\n * uniqueKeys: [{ fields: ['vin'], skipForDrafts: true }]\n * ```\n */\n uniqueKeys?: UniqueKeyDefinition[];\n /**\n * SOC2 security configuration for this entity (optional — zero-config MVP path).\n * When a `SecurityContext` is provided to `CrudService`, these settings control\n * PII encryption, audit logging, rate limits, MFA enforcement, and retention.\n *\n * @example\n * ```typescript\n * security: {\n * piiFields: ['email', 'phone'],\n * requireMfa: 'admin',\n * retention: { days: 365 },\n * }\n * ```\n */\n security?: SecurityEntityConfig;\n /**\n * Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.\n * If omitted, all text-like visible fields are searched automatically.\n *\n * @example\n * ```typescript\n * search: { fields: ['name', 'description', 'sku'] }\n * ```\n */\n search?: {\n fields?: string[];\n };\n /**\n * Default client-side sort for list hooks.\n * Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.\n * Pass `clientSort: null` in hook options to disable.\n *\n * @example\n * ```typescript\n * defaultSort: { field: 'createdAt', direction: 'desc' }\n * ```\n */\n defaultSort?: {\n field: string;\n direction?: 'asc' | 'desc';\n };\n}","CachedError":"/**\n * Information about a cached error\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CachedError {\n /** The error object */\n error: Error;\n /** Timestamp when the error occurred */\n timestamp: number;\n}","CanAPI":"/**\n * Capability-based access control API\n *\n * Provides granular permission checks based on resources and custom capabilities.\n * Permissions are derived from userProfile.permissions array (format: \"resource:action\")\n * and user role (admin bypasses all checks).\n *\n * @example\n * ```typescript\n * const can = useAuth('can');\n * if (can.view('dashboard')) { ... }\n * if (can.edit('licenses')) { ... }\n * if (can.perform('approve-budget', { amount: 5000 })) { ... }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.3\n * @author AMBROISE PARK Consulting\n */\ninterface CanAPI {\n /** Check if user can navigate to a route (replaces canAccess) */\n navigate: (config: PageAuth | false) => boolean;\n /** Check if user can view a resource */\n view: (resource: string) => boolean;\n /** Check if user can edit a resource */\n edit: (resource: string) => boolean;\n /** Check if user can delete a resource */\n delete: (resource: string) => boolean;\n /** Check if user can create a resource */\n create: (resource: string) => boolean;\n /** Check custom capability with optional context */\n perform: (action: string, context?: Record<string, any>) => boolean;\n /** Check if user has specific permission string */\n has: (permission: string) => boolean;\n}","CanvasBlock":"/**\n * Envelope for a single canvas block emitted by the agent.\n *\n * `payload` is intentionally `unknown` at the envelope level — it is\n * validated against the registered widget's payload schema inside\n * `validateBlock`. Do not trust `payload` without that check.\n */\ninterface CanvasBlock {\n readonly id: string;\n readonly kind: string;\n readonly lifetime: CanvasLifetime;\n readonly metadata?: CanvasWidgetMetadata;\n readonly payload: unknown;\n}","CanvasCallerAccess":"/**\n * Caller access tier passed to `validateBlock` for surface gating.\n *\n * Mirrors the gontrand access model. `kid` and `null` fail closed for any\n * non-`meta` surface at the canvas boundary.\n */\ntype CanvasCallerAccess = 'admin' | 'member' | 'kid' | null;","CanvasEvent":"/**\n * Envelope for a user interaction event emitted back to the agent.\n *\n * `payload` is validated against the widget's per-action schema inside\n * `validateEvent`.\n */\ninterface CanvasEvent {\n readonly widgetId: string;\n readonly action: string;\n readonly payload: unknown;\n}","CanvasLifetime":"/**\n * Canvas block lifetime. Kept as a type alias here — the runtime schema\n * `CanvasLifetimeSchema` lives in `@donotdev/schemas`.\n *\n * - `ephemeral` — vanishes with the current turn (default).\n * - `session` — pinned to the current chat thread.\n * - `persistent` — lives on the PWA dashboard until manually removed.\n */\ntype CanvasLifetime = 'ephemeral' | 'session' | 'persistent';","CanvasSurface":"/**\n * Which surface a widget is allowed to render on.\n *\n * - `household` — any authenticated member.\n * - `private` — member-scoped (mail, 2nd-brain, homework).\n * - `meta` — framing widgets (TextBlock, Composite, ProgressCanvas, Confirmation).\n */\ntype CanvasSurface = 'household' | 'private' | 'meta';","CanvasWidgetMetadata":"/**\n * Optional display hints attached to a canvas block.\n */\ninterface CanvasWidgetMetadata {\n readonly title?: string;\n readonly pinnable?: boolean;\n readonly preferredHeight?: number;\n}","CanvasWidgetProps":"/**\n * Props every widget component receives from `CanvasHost`. The React\n * component shape itself lives in `@donotdev/canvas` (UI package).\n */\ninterface CanvasWidgetProps {\n readonly payload: unknown;\n readonly emit: (action: string, payload: unknown) => void;\n}","CheckGitHubAccessRequest":"/**\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckGitHubAccessRequest = v.InferOutput<typeof checkGitHubAccessSchema>;","CheckoutAddress":"/**\n * Postal address as reported by Stripe.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutAddress {\n line1: string | null;\n line2: string | null;\n postalCode: string | null;\n city: string | null;\n state: string | null;\n /** ISO 3166-1 alpha-2 */\n country: string | null;\n}","CheckoutLineItemInput":"/**\n * One requested checkout line (client input).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutLineItemInput = v.InferOutput<typeof CheckoutLineItemInputSchema>;","CheckoutMode":"/** Unified checkout mode type used everywhere\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutMode = 'payment' | 'subscription';","CheckoutOptions":"/**\n * Client checkout options (useStripeBilling `checkout`).\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutOptions {\n /** Key in the app's StripeBackConfig. 0.1.x callers may pass it as `metadata.billingConfigKey`. */\n billingConfigKey?: string;\n /** Requested lines. Defaults to `[{ productId: billingConfigKey, quantity: 1 }]` (single product / subscription). */\n lineItems?: CheckoutLineItemInput[];\n successUrl?: string;\n cancelUrl?: string;\n metadata?: Record<string, string>;\n /** Single-price items: show the promotion code field (default true). StripeOrder: set in the back config. */\n allowPromotionCodes?: boolean;\n /** Stripe price ID (single-price items). Must match the back config priceId when it has one; defaults to it. */\n priceId?: string;\n /** Dynamic pricing amount in cents (with `productName`, no `priceId`). Capped by the back config `maxUnitAmount`. */\n unitAmount?: number;\n /** Product name for dynamic pricing. */\n productName?: string;\n /** Currency for dynamic pricing (default 'eur'). */\n currency?: string;\n /** Stripe mode for single-price items. Defaults to the back config item type. */\n mode?: CheckoutMode;\n}","CheckoutSessionMetadata":"/**\n * Checkout session metadata type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutSessionMetadata = v.InferOutput<typeof CheckoutSessionMetadataSchema>;","CheckoutSessionParams":"/**\n * 0.1.x single-price session params, sent to a {@link StripeCheckoutProvider}.\n *\n * @version 0.2.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionParams {\n priceId?: string;\n /** Amount in cents (dynamic pricing mode) */\n unitAmount?: number;\n /** Product name for Stripe checkout (dynamic pricing mode) */\n productName?: string;\n /** Currency code, defaults to 'eur' */\n currency?: string;\n customerEmail?: string;\n metadata: Record<string, string>;\n allowPromotionCodes: boolean;\n successUrl: string;\n cancelUrl: string;\n mode?: 'payment' | 'subscription';\n}","CheckoutSessionResult":"/**\n * Checkout Session created by a provider.\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionResult {\n id: string;\n url: string | null;\n}","CheckoutSessionSnapshot":"/**\n * Provider-neutral snapshot of a completed/expired Stripe Checkout Session,\n * passed to order hooks.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionSnapshot {\n id: string;\n /** 'paid' | 'unpaid' | 'no_payment_required' */\n paymentStatus: string;\n currency: string | null;\n /** Amounts in the smallest currency unit */\n amountSubtotal: number | null;\n amountTax: number | null;\n amountShipping: number | null;\n amountDiscount: number | null;\n amountTotal: number | null;\n customerId: string | null;\n customer: {\n email: string | null;\n name: string | null;\n phone: string | null;\n /** Business name, when collected */\n businessName: string | null;\n address: CheckoutAddress | null;\n taxIds: Array<{\n type: string;\n value: string | null;\n }>;\n /** 'none' | 'exempt' | 'reverse' */\n taxExempt: string | null;\n } | null;\n shipping: {\n name: string;\n address: CheckoutAddress;\n } | null;\n invoiceId: string | null;\n paymentIntentId: string | null;\n metadata: Record<string, string>;\n}","CollectionSubscriptionCallback":"/** Callback for collection subscriptions */\ntype CollectionSubscriptionCallback<T> = (data: T[], error?: Error) => void;","ColumnDef":"/**\n * Column definition for list views\n * @template T - The item type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ColumnDef<T extends FieldValues> {\n /** Key in the data object */\n key: keyof T;\n /** Display label */\n label: string;\n /** Optional custom render function */\n render?: (value: T[keyof T], row: T) => ReactNode;\n}","CommonSubscriptionFeatures":"/**\n * Common subscription features that apps can reference\n * Apps can use these or define their own custom features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CommonSubscriptionFeatures = 'basic-usage' | 'limited-storage' | 'standard-support' | 'cloud-sync' | 'advanced-analytics' | 'priority-support' | 'custom-branding' | 'team-collaboration' | 'ai-assistant' | 'custom-models' | 'unlimited-generations' | 'advanced-integrations';","CommonTranslations":"/**\n * Common translation interface for shared UI elements\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CommonTranslations {\n /** Action button translations */\n actions: {\n create: string;\n update: string;\n delete: string;\n cancel: string;\n confirm: string;\n };\n /** Error message translations */\n errors: Record<string, string>;\n /** Common label translations */\n labels: Record<string, string>;\n}","ConditionBuilderLike":"/**\n * Structural interface satisfied by ConditionBuilder (defined in @donotdev/utils).\n * Allows types to reference builders without depending on the runtime class.\n */\ninterface ConditionBuilderLike {\n readonly expression: ConditionExpression;\n}","ConditionExpression":"/** A condition expression — the serializable data model for conditions */\ntype ConditionExpression = ConditionNode | ConditionGroup;","ConditionGroup":"/** Logical group of conditions */\ninterface ConditionGroup {\n readonly type: 'group';\n readonly logic: 'and' | 'or';\n readonly conditions: ReadonlyArray<ConditionExpression>;\n}","ConditionInput":"/** Accepted condition input — either a raw expression or a ConditionBuilder */\ntype ConditionInput = ConditionExpression | ConditionBuilderLike;","ConditionNode":"/** A single condition: field + operator + value */\ninterface ConditionNode {\n readonly type: 'condition';\n readonly field: string;\n readonly operator: ConditionOperator;\n readonly value?: unknown;\n}","ConditionOperator":"/** Supported comparison operators */\ntype ConditionOperator = 'equals' | 'notEquals' | 'in' | 'notIn' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'exists' | 'notExists' | 'contains';","ConditionResult":"/** Result of evaluating all conditions for a field */\ninterface ConditionResult {\n /** Whether the field should be visible (default: true) */\n visible: boolean;\n /** Whether the field should be disabled (default: false) */\n disabled: boolean;\n /** Whether the field is required (default: false, overrides static validation.required) */\n required: boolean;\n /** Whether the field is readonly (default: false) */\n readonly: boolean;\n}","ConditionalBehavior":"/** Conditions that can be attached to a field */\ninterface ConditionalBehavior {\n /** Condition for field visibility — if false, field is hidden and excluded from validation */\n visible?: ConditionInput;\n /** Condition for field disabled state */\n disabled?: ConditionInput;\n /** Condition for dynamic required — evaluated at runtime */\n required?: ConditionInput;\n /** Condition for readonly state */\n readonly?: ConditionInput;\n}","ConfidenceLevel":"/**\n * Confidence level type derived from CONFIDENCE_LEVELS constant\n */\ntype ConfidenceLevel = (typeof CONFIDENCE_LEVELS)[keyof typeof CONFIDENCE_LEVELS];","ConnectOptions":"/**\n * Options for `useOAuth('connect')`.\n * Allows scope customization and extra auth URL parameters.\n *\n * @example\n * ```typescript\n * const connect = useOAuth('connect');\n * // Simple (defaults):\n * await connect('github');\n * // With scope override:\n * await connect('github', { purpose: 'api-access', scopes: ['repo', 'user:email'] });\n * ```\n *\n * @version 0.1.0\n * @since 0.1.0\n * @author AMBROISE PARK Consulting\n */\ninterface ConnectOptions {\n /** OAuth purpose — defaults to 'api-access' */\n purpose?: OAuthPurpose;\n /** Override default scopes from schema. Only these scopes will be requested. */\n scopes?: string[];\n /** Extra query parameters to append to the auth URL */\n additionalParams?: Record<string, string>;\n}","ConsentAPI":"/**\n * Consent API - All available properties and methods from consent store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentAPI extends ConsentState, ConsentActions {\n /** Whether banner should be shown */\n showBanner: boolean;\n}","ConsentActions":"/**\n * Consent actions interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentActions {\n /** Accept all optional categories */\n acceptAll: () => void;\n /** Decline all optional categories */\n declineAll: () => void;\n /** Update specific category */\n updateCategory: (category: keyof DoNotDevCookieCategories, value: boolean) => void;\n /** Check if category is granted */\n hasCategory: (category: keyof DoNotDevCookieCategories) => boolean;\n /** Reset consent (for testing) */\n reset: () => void;\n /** Save consent to cookie */\n saveConsent: () => void;\n /** Show cookie banner (for cookie settings link) */\n showCookieBanner: () => void;\n}","ConsentCategory":"/**\n * Consent category type - auto-derived from constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ConsentCategory = (typeof CONSENT_CATEGORY)[keyof typeof CONSENT_CATEGORY];","ConsentState":"/**\n * Consent state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentState {\n /** Whether user has made a consent choice */\n hasConsented: boolean;\n /** Individual category permissions - only includes categories that are actually required */\n categories: AppCookieCategories;\n /** When consent was last updated */\n timestamp: string | null;\n /** Consent version for future migrations */\n version: string;\n}","Context":"/**\n * Context type derived from CONTEXTS constant\n */\ntype Context = (typeof CONTEXTS)[keyof typeof CONTEXTS];","CookieOptions":"/**\n * Cookie options for setting cookies\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CookieOptions {\n /** Cookie expiration in days (default: 365) */\n expires?: number;\n /** Cookie path (default: '/') */\n path?: string;\n /** Cookie domain */\n domain?: string;\n /** Secure flag (default: true) */\n secure?: boolean;\n /** SameSite attribute (default: 'strict') */\n sameSite?: 'strict' | 'lax' | 'none';\n /** Cookie priority (Chrome 99+) */\n priority?: 'low' | 'medium' | 'high';\n /** Partitioned flag (Chrome 114+) */\n partitioned?: boolean;\n}","CreateCheckoutSessionRequest":"/**\n * Create checkout session request type (normalized: `billingConfigKey` and `lineItems` set)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionRequest = v.InferOutput<typeof CreateCheckoutSessionRequestSchema>;","CreateCheckoutSessionRequestInput":"/**\n * Create checkout session request as sent by a client (before normalization)\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionRequestInput = v.InferInput<typeof CreateCheckoutSessionRequestSchema>;","CreateCheckoutSessionResponse":"/**\n * Create checkout session response type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionResponse = v.InferOutput<typeof CreateCheckoutSessionResponseSchema>;","CreateEntityData":"/**\n * Data required for creating an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CreateEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The entity data to create */\n payload: T;\n /** Optional idempotency key for preventing duplicate operations */\n idempotencyKey?: string;\n}","CreateEntityRequest":"/**\n * Create entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateEntityRequest = v.InferOutput<typeof createEntitySchema>;","CreateEntityResponse":"/**\n * Create entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CreateEntityResponse {\n success: boolean;\n id: string;\n data: Record<string, any>;\n}","CrudAPI":"/**\n * CRUD API type - complete interface for useCrud hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CrudAPI<T = unknown> {\n /**\n * Unified feature status - single source of truth for CRUD state.\n * - `initializing`: CRUD is loading/initializing\n * - `ready`: CRUD fully operational\n * - `degraded`: CRUD unavailable (feature not installed/consent not given)\n * - `error`: CRUD encountered error\n */\n status: FeatureStatus;\n /** Current data (from get/subscribe) */\n data: T | null;\n /** Loading state for async operations */\n loading: boolean;\n /** Last error encountered */\n error: Error | null;\n /** Fetch single document by ID */\n get: (id: string) => Promise<T | null>;\n /** Set/replace document by ID */\n set: (id: string, data: T, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Partial update document by ID */\n update: (id: string, data: Partial<T>, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Delete document by ID */\n delete: (id: string, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Add new document (auto-generated ID) */\n add: (data: CrudCreateInput<T>, options?: {\n showSuccessToast?: boolean;\n }) => Promise<string>;\n /** Query collection with filters */\n query: (options: QueryOptions) => Promise<T[]>;\n /** Subscribe to document changes */\n subscribe: (id: string, callback: (data: T | null, error?: Error) => void) => () => void;\n /** Subscribe to collection changes */\n subscribeToCollection: (options: QueryOptions, callback: (data: T[], error?: Error) => void) => () => void;\n /** Invalidate cache for this collection (TanStack Query) */\n invalidate: () => Promise<void>;\n /** Whether CRUD is available and operational */\n isAvailable: boolean;\n /**\n * Cross-collection atomic bulk write. One optimistic pass, one toast,\n * coordinated rollback. Batches with `dependsOn` run after their\n * dependencies; independent batches run in parallel.\n */\n bulkAcross?: (batches: BulkAcrossBatch[], options?: {\n showSuccessToast?: boolean;\n }) => Promise<BulkAcrossResult>;\n}","CrudCardProps":"/**\n * Props for CrudCard — presentational card built from entity + item + field slots.\n * Not route-aware: parent (e.g. EntityCardList) provides detailHref or onClick.\n * For a11y/SEO prefer detailHref so the card is wrapped in a Link.\n */\ninterface CrudCardProps {\n /** The list item (must have id) */\n item: EntityRecord & {\n id: string;\n };\n /** The entity definition (for entity.fields and formatting) */\n entity: AnyEntity;\n /**\n * Called when card is clicked (e.g. open sheet instead of navigating).\n * Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.\n */\n onClick?: (id: string) => void;\n /** Field names for card title (values joined with space) */\n titleFields?: string[];\n /** Field names for subtitle */\n subtitleFields?: string[];\n /** Field names for content body (label + value rows) */\n contentFields?: string[];\n /** Field names for footer */\n footerFields?: string[];\n /** When true, show delete button with confirm dialog */\n showDelete?: boolean;\n /** Optional actions slot (e.g. favorites heart) rendered in card corner */\n renderActions?: ReactNode;\n /** Optional overlay rendered over the full image area (position absolute, centered, pointer-events none) */\n renderOverlay?: ReactNode;\n /** Optional className for the card wrapper */\n className?: string;\n}","CrudConfig":"/**\n * CRUD entity configuration for auto-generation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CrudConfig {\n /** Entity collection names to generate CRUD for */\n entities: string[];\n /** Override defaults for all CRUD functions */\n defaults?: Partial<FunctionMeta>;\n}","CrudCreateInput":"/**\n * Payload for create flows (`add`, bulk `inserts`) before the document has a\n * stable `id` (server- or client-generated). Matches runtime: optimistic add\n * mints a temp id; the create schema validates this shape.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype CrudCreateInput<T> = T extends Record<string, unknown> ? Omit<T, 'id'> : Record<string, unknown>;","CrudDocQuery":"/**\n * Return shape of the CRUD single-document query option builder\n * (`CrudService.getDocQueryOptions` / `getDocQueryOptionsImpl`).\n *\n * TanStack-compatible descriptor for `useQuery()`. See `CrudListQuery` for\n * the rationale behind promoting this shape into core types.\n *\n * @template T - The document entity type\n */\ninterface CrudDocQuery<T> {\n readonly queryKey: readonly ['crud', string, 'get', string];\n readonly queryFn: () => Promise<T | null>;\n readonly staleTime: number;\n}","CrudListQuery":"/**\n * Return shape of the CRUD list-query option builder\n * (`CrudService.getListQueryOptions` / `getListQueryOptionsImpl`).\n *\n * This is the TanStack-compatible descriptor handed to `useQuery()`. Lifted\n * into `@donotdev/core` so the CRUD facade and its impl can both annotate\n * their return types against a single source — the inferred-only shape\n * caused circular type inference (TS7023) after the 1949-LOC CrudService\n * split.\n *\n * **Invariant:** `queryKey[3]` is `JSON.stringify(queryOptions)` — list and\n * listCard views share the same key, yielding one network read.\n *\n * @template T - The entity type in list items\n */\ninterface CrudListQuery<T> {\n readonly queryKey: readonly ['crud', string, 'query', string];\n /**\n * Receives TanStack's query context; `client` (the request's QueryClient on the\n * server) selects a request-scoped adapter when one is bound.\n */\n readonly queryFn: (context: {\n client: object;\n }) => Promise<PaginatedQueryResult<T>>;\n readonly staleTime: number;\n}","CrudOperationOptions":"/** Options for CRUD operations */\ninterface CrudOperationOptions {\n /** AbortSignal to cancel the operation */\n signal?: AbortSignal;\n}","CrudOperator":"/** Union of operator string literals. Consumer apps may use e.g. operator: 'in' without importing CRUD_OPERATORS. */\ntype CrudOperator = (typeof CRUD_OPERATORS)[keyof typeof CRUD_OPERATORS];","CustomClaims":"/**\n * Type for Firebase Auth custom claims\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CustomClaims = v.InferOutput<typeof CustomClaimsSchema>;","CustomFieldOptionsMap":"interface CustomFieldOptionsMap {\n * 'custom-address': { extractZipCode?: boolean };\n * 'repairOperations': { maxItems?: number };\n * }","CustomStoreConfig":"/**\n * Custom store configuration for app-specific stores\n *\n * Allows apps to register custom Zustand stores with the framework's\n * store initialization system. Custom stores benefit from:\n * - Shell loader integration (critical stores block render)\n * - Retry logic and error handling\n * - Unified initialization flow\n *\n * @example\n * ```typescript\n * const customStores: CustomStoreConfig[] = [{\n * name: 'dndop',\n * type: 'critical',\n * store: useDndopStore,\n * }];\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CustomStoreConfig {\n /** Store name for logging and debugging */\n name: string;\n /**\n * Store initialization priority\n * - 'critical': Blocks render until ready, shell loader stays visible\n * - 'regular': Initializes in background after critical stores\n */\n type: 'critical' | 'regular';\n /**\n * Zustand store reference (hook)\n * Can be called as a hook with a selector: `store((state) => state.isReady)`\n * Also has a .getState() method for direct state access\n */\n store: {\n (selector: (state: any) => any): any;\n getState: () => {\n initialize?: () => Promise<boolean | void>;\n [key: string]: any;\n };\n subscribe: (listener: () => void) => () => void;\n };\n}","DateValue":"/**\n * Represents a date value in various formats accepted by Firebase.\n * Can be a JavaScript Date, a Firestore Timestamp, or an ISO 8601 string.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DateValue = Date | FirestoreTimestamp | string;","DeleteEntityRequest":"/**\n * Delete entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DeleteEntityRequest = v.InferOutput<typeof deleteEntitySchema>;","DeleteEntityResponse":"/**\n * Delete entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DeleteEntityResponse {\n success: boolean;\n id: string;\n}","Density":"/**\n * Density type - auto-derived from constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Density = (typeof DENSITY)[keyof typeof DENSITY];","DnDevOverride":"/**\n * Layout override function - lazy component renderer\n *\n * Consumers use this to override layout zones/slots.\n * Function ensures components load lazily, not in provider tree.\n * Return `null` to explicitly hide the slot.\n */\ntype DnDevOverride = () => ReactNode | null;","DnDevWrapper":"/**\n * Main content wrapper component\n *\n * Wraps the page content (`children` / `<Outlet />`) inside `<main>`.\n * Use to add custom chrome around page content without modifying the framework layout:\n * split panes, floating panels, contextual sidebars, terminal docking, etc.\n *\n * Receives page content as `children`. Breadcrumbs, debug tools, and footer\n * remain outside the wrapper (framework-managed).\n *\n * Works identically with Vite (`<Outlet />`) and Next.js (`{children}`).\n *\n * @example\n * ```tsx\n * // Vite — split pane with terminal\n * <ViteAppProviders\n * layout={{\n * wrapper: ({ children }) => (\n * <SplitLayout terminal={<TerminalPanel />}>\n * {children}\n * </SplitLayout>\n * ),\n * }}\n * />\n *\n * // Next.js — admin panel with contextual sidebar\n * <NextJsAppProviders\n * layout={{\n * wrapper: ({ children }) => (\n * <AdminPanel sidebar={<ContextNav />}>{children}</AdminPanel>\n * ),\n * }}\n * />\n * ```\n */\ntype DnDevWrapper = (props: {\n children: ReactNode;\n}","DndevFrameworkConfig":"/**\n * Complete DoNotDev framework configuration structure\n * @description Single source of truth for all framework configuration\n *\n * @remarks\n * All discovery plugins add their data to this unified config.\n * Available at runtime via globalThis._DNDEV_CONFIG_ or window._DNDEV_CONFIG_\n */\ninterface DndevFrameworkConfig {\n /** Framework platform (Vite or Next.js) */\n platform: Platform;\n /** Current environment mode */\n mode: EnvironmentMode;\n /** Framework version */\n version: string;\n /** Execution context */\n context: Context;\n /** Unix timestamp of config generation */\n timestamp: number;\n /** i18n plugin configuration (optional) */\n i18n?: I18nPluginConfig;\n /** Routes plugin configuration (optional) */\n routes?: RoutesPluginConfig;\n /** Themes plugin configuration (optional) */\n themes?: ThemesPluginConfig;\n /** Assets plugin configuration (optional) */\n assets?: AssetsPluginConfig;\n /** PWA plugin configuration (optional) */\n pwa?: PWAPluginConfig;\n /** Features plugin configuration (optional) */\n features?: FeaturesPluginConfig;\n /** Environment variables (VITE_* variables from .env files) */\n env?: Record<string, string>;\n}","DndevProviders":"/**\n * All pluggable providers for the DoNotDev framework.\n *\n * - **crud** (required): CRUD adapter. Required for `useCrud` and entity operations.\n * - **auth** (optional): Client auth. Omit if using external auth.\n * - **storage** (optional): File/image storage. Omit if no uploads.\n * - **serverAuth** (optional): Server-side token verification.\n * - **callable** (optional): Server function invocation (e.g. Supabase Edge Functions).\n *\n * @example Firebase\n * ```typescript\n * configureProviders({\n * crud: new FirestoreAdapter(),\n * auth: new FirebaseAuth(),\n * storage: new FirebaseStorageAdapter(),\n * });\n * ```\n *\n * @example Supabase\n * ```typescript\n * configureProviders({\n * crud: new SupabaseCrudAdapter(supabase),\n * auth: new SupabaseAuth(supabase),\n * storage: new SupabaseStorageAdapter(supabase, 'your-bucket'),\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface DndevProviders {\n /** Client-side authentication provider */\n auth?: AuthProvider;\n /** Server-side token verification and user management */\n serverAuth?: IServerAuthAdapter;\n /** Database / CRUD operations (required) */\n crud: ICrudAdapter;\n /** File and image storage */\n storage?: IStorageAdapter;\n /** Server-side function invocation (Edge Functions, Cloud Functions, API routes) */\n callable?: ICallableProvider;\n}","DndevStoreApi":"/**\n * DoNotDev store API interface without direct Zustand dependency.\n * Renamed from StoreApi to avoid shadowing Zustand's StoreApi.\n * @template T - The store state type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DndevStoreApi<T> {\n /** Returns the current state */\n getState: () => T;\n /** Updates the store state */\n setState: (partial: Partial<T> | ((state: T) => Partial<T>), replace?: boolean) => void;\n /** Subscribes to state changes */\n subscribe: (listener: (state: T, prevState: T) => void) => () => void;\n}","DoNotDevCookieCategories":"/**\n * Cookie consent categories\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevCookieCategories {\n /** Always granted, cannot be declined - core functionality */\n necessary: boolean;\n /** Requires consent - Firebase Auth, user preferences */\n functional: boolean;\n /** Requires consent - analytics, performance monitoring */\n analytics: boolean;\n /** Requires consent - marketing, ads, remarketing */\n marketing: boolean;\n}","DocumentSubscriptionCallback":"/** Callback for single-document subscriptions */\ntype DocumentSubscriptionCallback<T> = (data: T | null, error?: Error) => void;","DynamicFormRule":"/**\n * Dynamic form rule for showing/hiding fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DynamicFormRule {\n /** Condition that triggers this rule */\n condition: FieldCondition | FieldCondition[];\n /** Fields to show when condition is met */\n showFields?: string[];\n /** Fields to hide when condition is met */\n hideFields?: string[];\n /** Fields to disable when condition is met */\n disableFields?: string[];\n /** Fields to enable when condition is met */\n enableFields?: string[];\n}","Editable":"/**\n * Editable level for entity fields\n * Controls who can MODIFY a field\n * - true: Anyone who can see the field\n * - false: Nobody (read-only, still shown in form)\n * - 'admin': Admin+ can edit (role hierarchy)\n * - 'super': Super only\n * - 'create-only': Editable on create, read-only after\n * - 'generated': DB-generated — hidden from forms, stripped from writes\n * - 'computed': UI-computed (derived from other fields) — hidden from forms, included in writes\n *\n * Custom role strings (e.g. future hierarchy keys) are accepted the same way as\n * {@link FieldType}: `(string & {})` keeps known literals distinguishable for\n * narrowing; plain `| string` would collapse to `boolean | string` and break\n * comparisons to `EDITABLE.GENERATED` / `EDITABLE.COMPUTED`.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Editable = (typeof EDITABLE)[keyof typeof EDITABLE] | (string & {}","EffectiveConnectionType":"/**\n * Effective connection speed types from the Network Information API\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype EffectiveConnectionType = 'slow-2g' | '2g' | '3g' | '4g' | 'unknown';","EmailConfig":"/** Configuration for email feature (consumer-facing) */\ninterface EmailConfig {\n /** Email provider */\n provider: EmailProvider;\n /** Default \"from\" address */\n defaultFrom: string;\n /** Default reply-to address */\n replyTo?: string;\n}","EmailErrorCode":"/** Email error code type */\ntype EmailErrorCode = (typeof EMAIL_ERROR_CODES)[keyof typeof EMAIL_ERROR_CODES];","EmailProvider":"/** Email provider type */\ntype EmailProvider = (typeof EMAIL_PROVIDERS)[keyof typeof EMAIL_PROVIDERS];","EmailRouteConfig":"/** Email route configuration (server-side) */\ninterface EmailRouteConfig {\n /** Email provider */\n provider: EmailProvider;\n /** Default \"from\" address (e.g., \"Frabled <noreply@frabled.com>\") */\n defaultFrom: string;\n /** Default reply-to address */\n replyTo?: string;\n /** Registered templates */\n templates: EmailTemplateRegistry;\n}","EmailTemplate":"/**\n * Email template with i18n support.\n * Templates render subject + HTML body from typed data and locale.\n *\n * @template TData - Shape of the template data\n */\ninterface EmailTemplate<TData extends Record<string, unknown> = Record<string, unknown>> {\n /** Render email subject for a given locale */\n subject: (data: TData, locale: string) => string;\n /** Render email HTML body for a given locale */\n html: (data: TData, locale: string) => string;\n}","EmailTemplateRegistry":"/**\n * Registry of named email templates.\n * Each key is a template ID used in send requests.\n */\ntype EmailTemplateRegistry = Record<string, EmailTemplate<any>>;","EmailVerificationHookResult":"/**\n * Result type for the useEmailVerification hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EmailVerificationHookResult {\n isVerified: boolean;\n isLoading: boolean;\n error: string | null;\n sendVerificationEmail: () => Promise<void>;\n checkVerificationStatus: () => Promise<void>;\n}","EmailVerificationStatus":"/**\n * Email verification status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype EmailVerificationStatus = 'verified' | 'pending' | 'error';","Entity":"/**\n * Complete entity definition including base fields\n * Created by defineEntity() which merges defaults\n *\n * Extends BusinessEntity but overrides optional properties to required:\n * - namespace: always computed (defaults to `entity-${name.toLowerCase()}`)\n * - access: always merged with defaults\n * - fields: includes base fields (id, createdAt, etc.)\n * - scope: preserved if provided (for multi-tenancy)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Entity<out F extends Record<string, EntityField> = EntityFieldMapDefault> extends Omit<BusinessEntity<F>, 'access' | 'namespace'> {\n /** Field definitions including base fields */\n fields: F;\n /** Access configuration with defaults applied (always present after defineEntity) */\n access: Required<EntityAccessConfig>;\n /** i18n namespace for translations (always present after defineEntity, defaults to `entity-${name.toLowerCase()}`) */\n namespace: string;\n /** Multi-tenancy scope configuration (preserved from BusinessEntity if provided) */\n scope?: ScopeConfig;\n}","EntityAccessConfig":"/**\n * Entity-level access configuration\n * Controls who can perform CRUD operations on the entity\n *\n * Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n * Higher roles inherit access to lower-level operations.\n *\n * @default DEFAULT_ENTITY_ACCESS (read: 'guest', create/update/delete: 'admin')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityAccessConfig {\n /** Minimum role required to create entities */\n create?: UserRole;\n /** Minimum role required to read entities (field visibility still applies) */\n read?: UserRole;\n /** Minimum role required to update entities */\n update?: UserRole;\n /** Minimum role required to delete entities */\n delete?: UserRole;\n}","EntityAccessDefaults":"/** Type derived from DEFAULT_ENTITY_ACCESS for type safety */\ntype EntityAccessDefaults = typeof DEFAULT_ENTITY_ACCESS;","EntityBrowseBaseProps":"/**\n * Shared base props for entity browsing components (table and card grid).\n * Both fetch the same data — just render differently based on entity field config.\n */\ninterface EntityBrowseBaseProps {\n /** The entity definition */\n entity: AnyEntity;\n /**\n * Base path for view. Default: `/${collection}`. View = `${basePath}/${id}`.\n */\n basePath?: string;\n /**\n * Called when user clicks a row/card. If provided, overrides default navigation to basePath/:id (e.g. open sheet).\n */\n onClick?: (id: string) => void;\n /** Hide filters section (default: false) */\n hideFilters?: boolean;\n /** Current user role (for UI toggle only - backend enforces security) */\n userRole?: string;\n /** Optional query constraints (server-side filtering via adapter) */\n queryOptions?: QueryOptions;\n /** Cache stale time in ms */\n staleTime?: number;\n /**\n * Tone for the filter and results Section wrappers.\n * Use 'base' or 'muted' when the app has an image background so sections are readable.\n * @default 'ghost' (transparent — inherits parent background)\n */\n tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';\n /**\n * Static data for design-time preview.\n * When provided, the component renders this data directly instead of\n * fetching from the CRUD backend. All interactive elements (edit, delete,\n * create, filters, favorites, navigation) are rendered but disabled.\n *\n * No CrudProvider or backend connection required.\n * Hooks are never called - rendering delegates to a standalone preview component.\n *\n * @example\n * ```tsx\n * // Design preview with mock data\n * <EntityCardList entity={productEntity} preview={mockProducts} />\n *\n * // Spec chat: entity generated from user description\n * <EntityList entity={specEntity} preview={generateMockData(specEntity, 6)} />\n * ```\n */\n preview?: (Record<string, unknown> & {\n id: string;\n })[];\n}","EntityCardListProps":"/** Props for the entity card grid component with filtering and sorting. */\ninterface EntityCardListProps extends EntityBrowseBaseProps {\n /** Grid columns (responsive) - defaults to [1, 2, 3, 4] */\n cols?: number | [number, number, number, number];\n /** Optional filter function to filter items client-side */\n filter?: (item: Record<string, unknown> & {\n id: string;\n }) => boolean;\n /**\n * Custom label for the results section title.\n * Receives the current item count so you can handle pluralization and empty state.\n * When not provided, defaults to the built-in i18n label (\"Found N occurrences\").\n *\n * @param count - Number of items after all filters are applied\n * @returns The string to display as the results section title\n *\n * @example\n * ```tsx\n * // Simple override\n * <EntityCardList\n * entity={apartmentEntity}\n * resultLabel={(count) =>\n * count === 0\n * ? 'No apartments available'\n * : count === 1\n * ? 'Your future home is right here'\n * : `Your future home is among these ${count} apartments`\n * }\n * />\n * ```\n */\n resultLabel?: (count: number) => string;\n /** Render a custom overlay on each card (e.g. status stamp). Receives the item. */\n renderCardOverlay?: (item: EntityRecord & {\n id: string;\n }) => ReactNode;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: {\n field: string;\n direction?: 'asc' | 'desc';\n } | ((a: any, b: any) => number) | null;\n /** Make filter/results sections collapsible. @default false */\n collapsible?: boolean;\n /** Initial open state when collapsible. Only relevant when `collapsible` is true. */\n defaultOpen?: boolean;\n}","EntityDisplayRendererProps":"/** Props for the read-only entity detail renderer with role-based visibility. */\ninterface EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> {\n /** Entity definition - pass the full entity from defineEntity() */\n entity: AnyEntity;\n /** Entity ID to fetch. Not required when `preview` is provided. */\n id?: string;\n /** Translation function (optional - auto-generated if not provided) */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /** Additional CSS classes */\n className?: string;\n /** Custom loading message */\n loadingMessage?: string;\n /** Custom not found message */\n notFoundMessage?: string;\n /**\n * Current viewer's role for visibility checks.\n * Auto-detected from auth when not provided. Pass explicitly to override.\n * Fallback chain: prop → useAuthSafe('userRole') → 'guest'\n */\n viewerRole?: string;\n /**\n * Field names to exclude from rendering.\n * Use when the page already displays certain fields in a custom hero/header section.\n */\n excludeFields?: string[];\n /**\n * Static data for design-time preview.\n * When provided, renders this record directly instead of fetching by id.\n * The `id` prop becomes unnecessary (ignored when preview is set).\n *\n * @example\n * ```tsx\n * <EntityDisplayRenderer entity={productEntity} preview={mockProduct} />\n * ```\n */\n preview?: Partial<T>;\n}","EntityField":"/**\n * Definition of a single entity field\n * @template T - The field type for type-safe validation and value inference\n *\n * @example\n * ```typescript\n * // Text field - TypeScript knows value is string\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * }\n *\n * // Select field with dropdown options\n * status: {\n * type: 'select',\n * visibility: 'user',\n * validation: {\n * required: true,\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n * }\n * }\n * ```\n *\n * **Note:** For `select`, `multiselect`, and `radio` fields, dropdown options must be defined in `validation.options` as an array of `{ value: string, label: string }` objects.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityField<T extends string = FieldType> {\n /** Field identifier - required for form binding */\n name: string;\n /** The field type, which determines the UI component and validation */\n type: T;\n /**\n * Who can SEE this field\n * - 'guest': Everyone (even unauthenticated)\n * - 'user': Authenticated users only (users see both guest and user fields)\n * - 'admin': Admins only\n * - 'technical': Internal/system fields (shown as read-only in edit forms)\n * - 'hidden': Never shown in UI, only exists in DB (passwords, tokens, API keys)\n */\n visibility: Visibility;\n /**\n * Who can MODIFY this field\n * - true: Anyone who can see the field (default)\n * - false: Nobody (read-only display)\n * - 'admin': Only admins can edit\n * - 'create-only': Editable on create, read-only after\n */\n editable?: Editable;\n /** Validation rules for this field. For select/multiselect/radio fields, include `options` array here. */\n validation?: ValidationRules<T>;\n /** Whether the field is internationalized */\n i18n?: boolean;\n /** Display label for the field */\n label: string;\n /** Hint text to display under the field */\n hint?: string;\n /** Field dependencies for dynamic forms */\n dependsOn?: {\n /** Field name this field depends on */\n field: string;\n /** Value that should trigger this field to show */\n value?: ValueTypeForField<FieldType>;\n /** Custom condition function */\n condition?: (formData: Record<string, unknown>) => boolean;\n };\n /** Field grouping for layout */\n group?: {\n /** Group name */\n name: string;\n /** Group title */\n title?: string;\n /** Group description */\n description?: string;\n /** Whether group is collapsible */\n collapsible?: boolean;\n /** Whether group is collapsed by default */\n collapsed?: boolean;\n };\n /**\n * Dynamic conditions for field behavior based on other field values.\n * Controls visibility, disabled, required, and readonly states at runtime.\n *\n * @example\n * ```typescript\n * conditions: {\n * visible: when('productType').equals('car'),\n * required: when('productType').equals('car'),\n * }\n * ```\n */\n conditions?: ConditionalBehavior;\n /** UI-specific configuration for field rendering */\n options?: UIFieldOptions<T>;\n}","EntityFieldMapDefault":"/**\n * Default merged field map when an entity is not parameterized with a literal field map.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype EntityFieldMapDefault = Record<string, EntityField> & BaseEntityFields;","EntityFormRendererProps":"/** Props for the entity form renderer with create/edit modes, validation, and navigation. */\ninterface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {\n /** Entity definition - pass the full entity from defineEntity() */\n entity: AnyEntity;\n /** Form submission handler */\n onSubmit: (data: T) => void | Promise<void>;\n /** Translation function */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /** Additional CSS classes */\n className?: string;\n /** Submit button text */\n submitText?: string;\n /**\n * Whether form data is loading (shows loading overlay)\n * Use this when fetching existing entity data for edit mode\n */\n loading?: boolean;\n /** Initial form values */\n defaultValues?: Partial<T>;\n /** Submit button variant */\n submitVariant?: 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';\n /** Secondary button text */\n secondaryButtonText?: string;\n /** Secondary button variant */\n secondaryButtonVariant?: 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';\n /** Secondary button submission handler */\n onSecondarySubmit?: (data: T) => void | Promise<void>;\n /**\n * Current viewer's role for editability checks.\n * Auto-detected from auth when not provided. Pass explicitly to override (e.g. View-As preview).\n * Fallback chain: prop → useAuthSafe('userRole') → 'guest'\n */\n viewerRole?: string;\n /**\n * Form operation type\n * @default 'create' (or 'edit' if defaultValues provided)\n */\n operation?: 'create' | 'edit';\n /**\n * Optional form ID for tracking loading state.\n * If not provided, one will be generated automatically.\n */\n formId?: string;\n /**\n * Cancel button text. If provided, shows a cancel button.\n * If not provided but onCancel is provided, shows default \"Cancel\" text.\n * Set to null to explicitly hide cancel button.\n */\n cancelText?: string | null;\n /**\n * Success path - full path to navigate after successful submit (e.g., `/products`).\n * If not provided, stays on page (edit) or relies on onSubmit to navigate (create).\n */\n successPath?: string;\n /**\n * Cancel path - full path (e.g., `/products`). If not provided, navigates back.\n * If onCancel callback is provided, it takes precedence over cancelPath.\n */\n cancelPath?: string;\n /**\n * Callback when cancel is clicked (after confirmation if dirty).\n * If not provided, cancel navigates to cancelPath or `/${collection}`.\n * If provided, cancel button will show (with cancelText or default \"Cancel\").\n */\n onCancel?: () => void;\n /**\n * Hide visibility indicators (badges + View As toggle).\n * When false (default), shows badge next to non-guest fields and View As role selector.\n * @default false\n */\n hideVisibilityInfo?: boolean;\n /**\n * Explicit form instance key for isolation between records.\n * When provided, React remounts the form whenever this value changes —\n * ensuring clean state when navigating between entities (e.g. `/cars/:id`).\n *\n * Pass the route ID: `instanceKey={id}`\n *\n * @example\n * ```tsx\n * // Automatically isolates form state per car — no manual reset needed\n * <EntityFormRenderer entity={carEntity} instanceKey={id} defaultValues={carData} />\n * ```\n */\n instanceKey?: string;\n}","EntityHookErrors":"/** Error type for entity hook operations (CRUD mutations). */\ntype EntityHookErrors = (typeof ENTITY_HOOK_ERRORS)[keyof typeof ENTITY_HOOK_ERRORS];","EntityListProps":"/** Props for the entity data table component with server/client pagination. */\ninterface EntityListProps extends EntityBrowseBaseProps {\n /**\n * Pagination mode:\n * - `'auto'` (default) — fetches up to 1000 client-side. Auto-switches to server if total > 1000.\n * - `'client'` — forces client-side (all data in memory, instant search/sort/filter).\n * - `'server'` — forces server-side (cursor pagination, one page at a time).\n */\n pagination?: 'auto' | 'client' | 'server';\n /** Page size - passed to DataTable. If not provided, DataTable uses its default (12) */\n pageSize?: number;\n /**\n * Enable export to CSV functionality\n * @default true (admin tables typically need export)\n */\n exportable?: boolean;\n}","EntityMetadata":"/**\n * Metadata fields for an entity.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityMetadata {\n /** ISO 8601 timestamp when the entity was created */\n createdAt: string;\n /** ISO 8601 timestamp when the entity was last updated */\n updatedAt: string;\n /** ID of the user who created the entity */\n createdById: string;\n /** ID of the user who last updated the entity */\n updatedById: string;\n}","EntityOwnershipConfig":"/**\n * Ownership configuration for stakeholder access (marketplace-style entities).\n * When set, drives Firestore rule condition generation, list/listCard query constraints,\n * and visibility: 'owner' field masking.\n *\n * @example\n * ```typescript\n * ownership: {\n * ownerFields: ['providerId', 'customerId'],\n * publicCondition: [\n * { field: 'status', op: '==', value: 'available' },\n * { field: 'isApproved', op: '==', value: true },\n * ],\n * }\n * ```\n */\ninterface EntityOwnershipConfig {\n /** Document fields whose value is a user id (e.g. providerId, customerId) */\n ownerFields: string[];\n /** Conditions joined with && for \"public\" read (e.g. status == 'available') */\n publicCondition?: EntityOwnershipPublicCondition[];\n}","EntityOwnershipPublicCondition":"/**\n * Single condition for public read/update in Firestore rules.\n * Joined with && when publicCondition is an array.\n */\ninterface EntityOwnershipPublicCondition {\n field: string;\n op: string;\n value: string | boolean | number;\n}","EntityRecommendationsProps":"/** Props for the entity recommendations section (e.g. \"Similar items\"). */\ninterface EntityRecommendationsProps {\n /** The entity definition */\n entity: AnyEntity;\n /** Query constraints — caller defines \"related by what\" (where, limit, etc.) */\n queryOptions: QueryOptions;\n /** Section title (e.g. \"Similar apartments\") */\n title?: string;\n /** Base path for card links. Default: `/${entity.collection}` */\n basePath?: string;\n /** Grid columns — default `[1,1,3,3]` */\n cols?: number | [number, number, number, number];\n /**\n * Tone for the Section wrapper.\n * Use 'base' or 'muted' when the app has an image background so the section is readable.\n * @default 'ghost' (transparent — inherits parent background)\n */\n tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';\n /** Additional className on wrapper Section */\n className?: string;\n}","EntityRecord":"/**\n * Entity record type - a record where values are valid field values\n * Accepts unknown since consumers can register custom field types\n */\ntype EntityRecord = Record<string, AnyFieldValue>;","EntityRowFromFields":"/**\n * CRUD/cache document row inferred from an entity `fields` map (SSOT with `defineEntity` literals).\n * Intersects {@link Record} so rows satisfy `T extends Record<string, unknown>` (bulk, PII, adapters).\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype EntityRowFromFields<F extends Record<string, EntityField>> = {\n [K in keyof F]: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? FieldTypeToValue[FT] : unknown : unknown;\n}","EntityTemplateProps":"/**\n * Base props for entity templates\n * @template T - The form values type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityTemplateProps<T extends FieldValues> {\n /** The DoNotDev schema for the entity */\n schema: dndevSchema<T>;\n /** Optional overrides for field configuration */\n fieldOverrides?: Partial<Record<keyof T, Partial<EntityField>>>;\n}","EntityTranslations":"/**\n * Entity translation interface\n * Maps entity field names to their translated labels and hints\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityTranslations {\n /** Translated field labels */\n fields: Record<string, string>;\n /** Translated field hints/descriptions */\n hints: Record<string, string>;\n /** Translated validation error messages */\n validations?: Record<string, string>;\n /** Translated placeholder text */\n placeholders?: Record<string, string>;\n}","EnvironmentMode":"/**\n * Environment mode type derived from ENVIRONMENTS constant\n */\ntype EnvironmentMode = (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];","ErrorCode":"/** Standardized error code derived from ERROR_CODES constant. */\ntype ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];","ErrorSeverity":"/** Error severity level for notifications and logging. */\ntype ErrorSeverity = (typeof ERROR_SEVERITY)[keyof typeof ERROR_SEVERITY];","ErrorSource":"/** Origin of an error for tracking and reporting. */\ntype ErrorSource = (typeof ERROR_SOURCE)[keyof typeof ERROR_SOURCE];","ExchangeTokenParams":"/**\n * Exchange token parameters interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenParams {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n code: string;\n redirectUri: string;\n codeVerifier?: string;\n}","ExchangeTokenRequest":"/**\n * Exchange token request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenRequest {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n code: string;\n redirectUri: string;\n codeVerifier?: string;\n state?: string;\n instance?: string;\n idempotencyKey?: string;\n}","ExchangeTokenResponse":"/**\n * Normalized response from server-side token exchange.\n * Callable providers (Firebase, Supabase) return this shape.\n *\n * @version 0.1.0\n * @since 0.1.0\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenResponse {\n success: boolean;\n credentials: OAuthCredentials;\n profile?: BaseUserProfile;\n}","FaviconConfig":"/**\n * Favicon and PWA configuration\n *\n * Configure automatic favicon generation and PWA manifest icons.\n *\n * @example\n * ```typescript\n * const faviconConfig: FaviconConfig = {\n * appName: 'My App',\n * themeColor: '#000000',\n * backgroundColor: '#ffffff'\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FaviconConfig {\n /** Enable automatic favicon system (default: true) */\n enabled?: boolean;\n /** App name for PWA manifest */\n appName?: string;\n /** Theme color for mobile browsers */\n themeColor?: string;\n /** Background color for splash screens */\n backgroundColor?: string;\n /** Include PWA manifest icons */\n includeManifestIcons?: boolean;\n /** Include Microsoft tile icons */\n includeMSIcons?: boolean;\n}","Feature":"/**\n * Represents a feature that can be enabled or disabled for users,\n * often tied to a specific subscription tier.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Feature {\n /** Unique identifier for the feature */\n id: string;\n /** Human-readable name for the feature */\n name: string;\n /** Description of what the feature does */\n description?: string;\n /** Whether the feature is currently enabled */\n enabled: boolean;\n /** Required subscription tier for this feature */\n requiredTier?: string;\n}","FeatureAccessHookResult":"/**\n * Result type for the useFeatureAccess hook\n * NOTE: subscription is now always present\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureAccessHookResult {\n hasFeature: (featureId: string) => boolean;\n hasTier: (requiredTier: string) => boolean;\n subscription: SubscriptionInfo;\n}","FeatureConsentRequirement":"/**\n * Get consent requirement for a specific feature\n *\n * @example\n * ```typescript\n * type AuthConsent = FeatureConsentRequirement<'auth'>; // 'functional'\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureConsentRequirement<F extends FeatureName> = (typeof FEATURE_CONSENT_MATRIX)[F]['requiresConsent'];","FeatureHookResult":"/**\n * Result type for the useFeature hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureHookResult {\n enabled: boolean;\n}","FeatureId":"/**\n * Type for feature names\n * Apps can extend this with their own custom features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureId = (typeof FEATURES)[keyof typeof FEATURES] | string;","FeatureName":"/**\n * Feature name type - auto-derived from matrix\n * TypeScript ensures only valid features are used\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureName = keyof typeof FEATURE_CONSENT_MATRIX;","FeatureStatus":"/**\n * Feature status type derived from FEATURE_STATUS constant\n */\ntype FeatureStatus = (typeof FEATURE_STATUS)[keyof typeof FEATURE_STATUS];","FeaturesConfig":"/**\n * Feature flags and debug configuration\n *\n * Controls app behavior and GDPR compliance.\n * Feature availability is auto-detected via env vars/packages.\n *\n * @example\n * ```typescript\n * const featuresConfig: FeaturesConfig = {\n * debug: true,\n * offlineTrustEnabled: true,\n * requiredCookies: ['necessary', 'analytics']\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeaturesConfig {\n /** Enable debug tools (default: false in production, true in development) */\n debug?: boolean;\n /**\n * Enable offline trust for cached claims (default: false)\n *\n * When true:\n * - Online: Always verify with server (don't trust cache)\n * - Offline: Use cached claims (graceful degradation)\n *\n * When false:\n * - Online: Always verify with server\n * - Offline: Reject (throw error, require network)\n *\n * @default false\n */\n offlineTrustEnabled?: boolean;\n /**\n * Cookie consent categories to display in GDPR banner\n *\n * Controls which cookie categories users can consent to.\n * Framework always includes 'necessary' (cannot be disabled).\n *\n * @example\n * ```typescript\n * features: {\n * requiredCookies: ['necessary', 'functional', 'analytics']\n * }\n * ```\n *\n * @default ['necessary']\n */\n requiredCookies?: string[];\n}","FeaturesPluginConfig":"/**\n * Features Plugin Configuration\n * @description Configuration for feature discovery and enablement\n *\n * @remarks\n * This interface defines the structure for feature discovery data that is populated\n * at build time and made available at runtime for feature availability checking.\n *\n * @example\n * ```typescript\n * // Generated by feature discovery system\n * const featuresConfig: FeaturesPluginConfig = {\n * available: ['auth', 'billing', 'i18n', 'oauth'],\n * enabled: ['auth', 'i18n'],\n * overridden: false\n * };\n * ```\n */\ninterface FeaturesPluginConfig {\n /**\n * List of all available features discovered in packages/features/\n * @example ['auth', 'billing', 'i18n', 'oauth']\n */\n available: string[];\n}","FeaturesRequiringAnyConsent":"/**\n * Features that require any consent (excludes null)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesRequiringAnyConsent = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends null ? never : K;\n}","FeaturesRequiringConsent":"/**\n * Get all features requiring a specific consent category\n *\n * @example\n * ```typescript\n * type FunctionalFeatures = FeaturesRequiringConsent<'functional'>;\n * // 'auth' | 'oauth' | 'billing'\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesRequiringConsent<C extends keyof DoNotDevCookieCategories> = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends C ? K : never;\n}","FeaturesWithoutConsent":"/**\n * Features that don't require consent\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesWithoutConsent = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends null ? K : never;\n}","FieldCondition":"/**\n * Condition for dynamic field visibility\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FieldCondition {\n /** Field name to check */\n field: string;\n /** Comparison operator */\n operator: 'equals' | 'not-equals' | 'contains' | 'greater-than' | 'less-than' | 'exists' | 'not-exists';\n /** Value to compare against */\n value?: any;\n /** For complex conditions, use a function */\n evaluate?: (formData: any) => boolean;\n}","FieldType":"/**\n * Supported field types for entities\n * These determine the UI components and validation rules used for each field\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FieldType = (typeof FIELD_TYPES)[number] | (string & {}","FieldTypeToValue":"/**\n * Maps field types to their corresponding TypeScript types\n * Used for type-safe form handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FieldTypeToValue = {\n address: {\n formatted_address: string;\n latitude: number;\n longitude: number;\n [key: string]: any;\n };\n array: any[];\n avatar: string;\n badge: string;\n boolean: boolean;\n checkbox: boolean;\n combobox: string;\n color: string;\n date: string;\n 'datetime-local': string;\n document: FileAsset | null;\n documents: FileAsset[];\n email: string;\n 'field-array': Record<string, unknown>[];\n file: FileAsset | null;\n files: FileAsset[];\n geopoint: {\n lat: number;\n lng: number;\n };\n hidden: string;\n iban: string;\n image: Picture | null;\n images: Picture[];\n map: Record<string, any>;\n month: string;\n multiselect: string[];\n number: number;\n price: {\n amount: number;\n currency?: string;\n vatIncluded?: boolean;\n discountPercent?: number;\n };\n password: string;\n radio: string;\n reference: string;\n range: number;\n reset: never;\n select: string;\n submit: never;\n tel: string;\n text: string;\n textarea: string;\n time: string;\n timestamp: string;\n switch: string | boolean;\n url: string;\n week: string;\n year: number;\n}","FileAsset":"/**\n * FileAsset type for generic file uploads (documents, any files)\n * Used by FileFieldComponent and DocumentFieldComponent\n */\ninterface FileAsset {\n /** Download URL for the file */\n url: string;\n /** Original filename */\n filename: string;\n /** File size in bytes */\n size: number;\n /** MIME type (e.g., 'application/pdf') */\n mimeType?: string;\n /** ISO timestamp when uploaded */\n uploadedAt?: string;\n}","FirebaseCallOptions":"/**\n * Options for Firebase functions call with abort support\n * Allows for cancellable Firebase function calls\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirebaseCallOptions {\n /** Optional key for the abort controller */\n abortKey?: string;\n /** Optional external abort signal to link with internal controller */\n externalSignal?: AbortSignal;\n /** Flag for public function calls */\n public?: boolean;\n /** HTTP callable timeout in milliseconds */\n timeout?: number;\n}","FirebaseConfig":"/**\n * Firebase configuration object\n * Contains the configuration needed to initialize a Firebase app\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirebaseConfig {\n /** Firebase API key */\n apiKey: string;\n /** Firebase authentication domain */\n authDomain: string;\n /** Firebase project ID */\n projectId: string;\n /** Firebase storage bucket URL (optional) */\n storageBucket?: string;\n /** Firebase messaging sender ID (optional) */\n messagingSenderId?: string;\n /** Firebase app ID (optional) */\n appId?: string;\n /** Firebase measurement ID for analytics (optional) */\n measurementId?: string;\n}","FirestoreTimestamp":"/**\n * Interface mimicking Firebase Timestamp for type compatibility\n * without requiring the actual Firebase Admin SDK\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirestoreTimestamp {\n seconds: number;\n nanoseconds: number;\n toDate(): Date;\n toMillis(): number;\n isEqual(other: FirestoreTimestamp): boolean;\n valueOf(): string;\n}","FirestoreUniqueConstraintValidator":"/**\n * Interface for Firebase uniqueness validation\n * Used to check if a value would create a duplicate in a collection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirestoreUniqueConstraintValidator {\n /**\n * Checks if a value would cause a duplicate in a given collection\n *\n * @param collection - The collection to check\n * @param field - The field to check\n * @param value - The value to check\n * @param currentDocId - The ID of the current document (for updates)\n * @returns A promise that resolves to true if a duplicate exists\n */\n checkDuplicate: (collection: string, field: string, value: any, currentDocId?: string) => Promise<boolean>;\n}","FooterConfig":"/**\n * Footer zone configuration\n *\n * Simple footer: Copyright (left) | LegalLinks + DoNotDev (right)\n * - `null`: Hide footer\n * - `undefined`: Use defaults (copyright + legal links + DoNotDev)\n * - `{ copyright?: ..., legalLinks?: ... }`: Custom configuration\n */\ninterface FooterConfig {\n /** Copyright configuration\n * - `null`: Hide copyright\n * - `undefined`: Use default (© YEAR appName. All rights reserved)\n * - `string`: Custom copyright text\n */\n copyright?: null | string;\n /** Legal links configuration\n * - `null`: Hide legal links\n * - `Array<{ path, label }>`: Custom legal links\n * - `undefined`: Use framework defaults\n */\n legalLinks?: null | Array<{\n path: string;\n label: string;\n }>;\n}","FooterMode":"/**\n * Footer mode type - auto-derived from constants\n */\ntype FooterMode = (typeof FOOTER_MODE)[keyof typeof FOOTER_MODE];","FooterZoneConfig":"/**\n * Footer zone configuration\n *\n * - `FooterConfig` object: configure DnDevFooter (copyright, legal links)\n * - `SlotContent` function: replace DnDevFooter with custom component\n * - `null`: hide footer\n * - `undefined`: use defaults\n */\ntype FooterZoneConfig = FooterConfig | SlotContent | null;","FormConfig":"/**\n * Form configuration for advanced form features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FormConfig {\n /** Form type */\n type?: 'single' | 'multi-step' | 'dynamic' | 'wizard';\n /** Steps for multi-step forms */\n steps?: FormStep[];\n /** Dynamic field rules */\n rules?: DynamicFormRule[];\n /** Whether to persist form state (auto-save drafts) */\n persist?: boolean;\n /** Persistence configuration */\n persistence?: {\n /** Storage key prefix */\n key?: string;\n /** Auto-save interval in milliseconds */\n autoSaveInterval?: number;\n /** Whether to show save indicator */\n showSaveIndicator?: boolean;\n };\n /** Form layout configuration */\n layout?: {\n /** Number of columns for field layout */\n columns?: 1 | 2 | 3;\n /** Whether to show field labels */\n showLabels?: boolean;\n /** Whether to show field hints */\n showHints?: boolean;\n /** Custom CSS classes */\n className?: string;\n };\n /** Form behavior configuration */\n behavior?: {\n /** Whether to show progress indicator */\n showProgress?: boolean;\n /** Whether to allow step navigation */\n allowStepNavigation?: boolean;\n /** Whether to validate on step change */\n validateOnStepChange?: boolean;\n /** Whether to show step numbers */\n showStepNumbers?: boolean;\n };\n}","FormStep":"/**\n * Form step configuration for multi-step forms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FormStep {\n /** Step title displayed in navigation */\n title: string;\n /** Step description (optional) */\n description?: string;\n /** Fields to include in this step */\n fields: string[];\n /** Whether this step is required */\n required?: boolean;\n /** Custom validation for this step */\n validation?: {\n /** Custom validation function */\n validate?: (data: any) => boolean | string;\n /** Error message if validation fails */\n message?: string;\n };\n}","FunctionCallConfig":"/**\n * Function call configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallConfig {\n /** Platform to use for function calls */\n platform: FunctionPlatform;\n /** Region for the function (platform-specific) */\n region?: string;\n /** Default timeout in milliseconds */\n timeout?: number;\n /** Number of retry attempts */\n retries?: number;\n /** Base URL for custom platforms */\n baseUrl?: string;\n}","FunctionCallContext":"/**\n * Function call context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallContext {\n /** User authentication token */\n token?: string;\n /** User ID */\n userId?: string;\n /** Request ID for tracking */\n requestId?: string;\n /** Additional context data */\n metadata?: Record<string, any>;\n}","FunctionCallOptions":"/**\n * Function call options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallOptions {\n /** Whether this is a public function call (no auth required) */\n public?: boolean;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Number of retry attempts */\n retries?: number;\n /** Abort signal for request cancellation */\n signal?: AbortSignal;\n /** Whether to cache the response */\n cache?: boolean;\n /** Cache stale time in milliseconds */\n staleTime?: number;\n /** Custom headers */\n headers?: Record<string, string>;\n}","FunctionCallResult":"/**\n * Function call result\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionCallResult<T> = {\n success: true;\n data: T;\n error?: never;\n}","FunctionClient":"/**\n * Function client interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionClient {\n /** Call a function */\n callFunction<TData>(functionName: string, params?: object, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: FunctionCallOptions): Promise<TData>;\n /** Get client configuration */\n getConfig(): FunctionCallConfig;\n /** Update client configuration */\n updateConfig(config: Partial<FunctionCallConfig>): void;\n}","FunctionClientFactoryOptions":"/**\n * Function client factory options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionClientFactoryOptions {\n /** Default configuration */\n config?: Partial<FunctionCallConfig>;\n /** Authentication token provider */\n getToken?: () => Promise<string | null>;\n /** Error handler */\n onError?: (error: FunctionError) => void;\n /** Request interceptor */\n onRequest?: (functionName: string, params: any) => void;\n /** Response interceptor */\n onResponse?: (functionName: string, response: any) => void;\n}","FunctionDefaults":"/**\n * App-level defaults for all functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionDefaults {\n /** Default deployment regions */\n region?: string[];\n /** Default platform version */\n platform?: 'gcfv1' | 'gcfv2';\n /** App label for all functions */\n labels?: Record<string, string>;\n /** Default memory allocation */\n memory?: FunctionMemory;\n /** Default timeout in seconds */\n timeoutSeconds?: number;\n}","FunctionEndpoint":"/**\n * Generated function endpoint entry (for YAML output)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionEndpoint {\n /** Function name (key in endpoints object) */\n name: string;\n /** Deployment regions */\n region: string[];\n /** Platform version */\n platform: 'gcfv1' | 'gcfv2';\n /** Trigger configuration */\n callableTrigger?: Record<string, never>;\n httpsTrigger?: Record<string, never>;\n scheduleTrigger?: {\n schedule: string;\n };\n /** Entry point in bundled code */\n entryPoint: string;\n /** Labels for organization */\n labels: Record<string, string>;\n /** Memory allocation */\n memory?: string;\n /** Timeout */\n timeoutSeconds?: number;\n /** Min instances */\n minInstances?: number;\n /** Max instances */\n maxInstances?: number;\n /** Secret environment variables */\n secretEnvironmentVariables?: Array<{\n key: string;\n }>;\n}","FunctionError":"/**\n * Function error details\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionError {\n /** Error code */\n code: string;\n /** Error message */\n message: string;\n /** Additional error details */\n details?: any;\n /** Platform-specific error information */\n platform?: {\n name: FunctionPlatform;\n errorCode?: string;\n errorMessage?: string;\n };\n}","FunctionLoader":"/**\n * Function loader interface for lazy loading\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionLoader {\n /** Load the functions system */\n load(): Promise<FunctionSystem>;\n /** Check if system is loaded */\n isLoaded(): boolean;\n /** Get loaded system (throws if not loaded) */\n getSystem(): FunctionSystem;\n}","FunctionMemory":"/**\n * Memory allocation options for Cloud Functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionMemory = '128MB' | '256MB' | '512MB' | '1GB' | '2GB' | '4GB' | '8GB';","FunctionMeta":"/**\n * Function-level deployment metadata\n * @description Per-function configuration for Firebase deployment (like PageMeta for pages)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionMeta {\n /** Custom entry point name (defaults to export name) */\n entryPoint?: string;\n /** Deployment regions (overrides app defaults) */\n region?: string[];\n /** Platform version */\n platform?: 'gcfv1' | 'gcfv2';\n /** Category label for organization */\n category?: 'auth' | 'crud' | 'analytics' | 'scheduled' | 'webhook' | string;\n /** Additional labels */\n labels?: Record<string, string>;\n /** Trigger type (defaults to 'callable') */\n trigger?: FunctionTrigger;\n /** For scheduled functions - cron expression */\n schedule?: string;\n /** Memory allocation */\n memory?: FunctionMemory;\n /** Timeout in seconds */\n timeoutSeconds?: number;\n /** Minimum instances (for cold start optimization) */\n minInstances?: number;\n /** Maximum instances */\n maxInstances?: number;\n /** Secret environment variable names (synced via sync-secrets, read via defineSecret) */\n secrets?: string[];\n}","FunctionPlatform":"/**\n * Supported function platforms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionPlatform = 'firebase' | 'vercel' | 'aws' | 'custom';","FunctionResponse":"/**\n * Function response wrapper\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionResponse<T = any> {\n /** Response data */\n data: T;\n /** Whether the call was successful */\n success: boolean;\n /** Error message if any */\n error?: string;\n /** Response metadata */\n metadata?: {\n platform: FunctionPlatform;\n duration: number;\n cached: boolean;\n timestamp: string;\n };\n}","FunctionSchema":"/**\n * Function schema definition\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSchema<TInput = any, TOutput = any> {\n /** Input validation schema */\n input?: v.BaseSchema<unknown, TInput, v.BaseIssue<unknown>>;\n /** Output validation schema */\n output?: v.BaseSchema<unknown, TOutput, v.BaseIssue<unknown>>;\n /** Function name */\n name: string;\n /** Whether this is a public function */\n public?: boolean;\n /** Function description */\n description?: string;\n}","FunctionSchemas":"/**\n * Predefined function schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSchemas {\n /** Auth-related functions */\n auth: {\n getUserProfile: FunctionSchema<{\n userId: string;\n }, Record<string, unknown>>;\n updateUserProfile: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n refreshToken: FunctionSchema<Record<string, never>, Record<string, unknown>>;\n };\n /** Billing-related functions */\n billing: {\n createCheckoutSession: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n refreshSubscriptionStatus: FunctionSchema<Record<string, never>, Record<string, unknown>>;\n processPaymentSuccess: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n };\n /** Generic CRUD functions */\n crud: {\n createEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n updateEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n deleteEntity: FunctionSchema<{\n id: string;\n }, Record<string, unknown>>;\n getEntity: FunctionSchema<{\n id: string;\n }, Record<string, unknown>>;\n listEntities: FunctionSchema<Record<string, unknown>, Record<string, unknown>[]>;\n };\n}","FunctionSystem":"/**\n * Complete functions system interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSystem {\n /** Function client */\n client: FunctionClient;\n /** React Query hooks */\n hooks: {\n useFunctionsQuery: <TData = unknown>(functionName: string, params?: object, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsQueryOptions<TData>) => UseFunctionsQueryResult<TData>;\n useFunctionsMutation: <TData = unknown, TVariables = object>(functionName: string, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsMutationOptions<TData, TVariables>) => UseFunctionsMutationResult<TData, TVariables>;\n useFunctionsCall: <TData = unknown>(functionName: string, options?: FunctionCallOptions) => UseFunctionsCallResult<TData>;\n };\n /** Direct call function */\n callFunction: FunctionClient['callFunction'];\n}","FunctionTrigger":"/**\n * Function trigger types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionTrigger = 'callable' | 'http' | 'pubsub' | 'firestore' | 'auth' | 'storage' | 'scheduled';","FunctionsConfig":"/**\n * Complete functions configuration for an app\n * @description Single config file pattern for functions.yaml generation\n *\n * @example\n * ```typescript\n * export const functionsConfig: FunctionsConfig = {\n * defaults: {\n * region: ['europe-west1'],\n * platform: 'gcfv2',\n * labels: { app: 'myapp' },\n * },\n * functions: {\n * setCustomClaims: { category: 'auth' },\n * getDashboardMetrics: { category: 'analytics', memory: '512MB' },\n * },\n * crud: {\n * entities: ['car', 'customer', 'inquiry'],\n * },\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionsConfig {\n /** App-level defaults applied to all functions */\n defaults?: FunctionDefaults;\n /** Static functions configuration (non-CRUD) */\n functions?: Record<string, FunctionMeta>;\n /** CRUD auto-generation configuration */\n crud?: CrudConfig;\n}","GetCustomClaimsResponse":"/**\n * Get custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetCustomClaimsResponse {\n claims: Record<string, any>;\n userId: string;\n}","GetEntityData":"/**\n * Data required for getting an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The ID of the entity to get */\n id: string;\n}","GetEntityRequest":"/**\n * Get entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GetEntityRequest = v.InferOutput<typeof getEntitySchema>;","GetEntityResponse":"/**\n * Get entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetEntityResponse {\n success: boolean;\n data: Record<string, any> | null;\n}","GetUserAuthStatusResponse":"/**\n * Get user auth status response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetUserAuthStatusResponse {\n userId: string;\n isAuthenticated: boolean;\n customClaims: Record<string, any>;\n hasClaims: boolean;\n claimCount: number;\n}","GitHubPermission":"/**\n * GitHub permission type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GitHubPermission = v.InferOutput<typeof githubPermissionSchema>;","GitHubRepoConfig":"/**\n * GitHub repository configuration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GitHubRepoConfig = v.InferOutput<typeof githubRepoConfigSchema>;","GrantGitHubAccessRequest":"/**\n * TypeScript type exports for GitHub access schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GrantGitHubAccessRequest = v.InferOutput<typeof grantGitHubAccessSchema>;","GroupByDefinition":"/**\n * Group by definition for aggregation\n *\n * @example\n * ```typescript\n * {\n * field: 'status',\n * metrics: [\n * { field: '*', operation: 'count', as: 'count' },\n * { field: 'price', operation: 'sum', as: 'value' },\n * ]\n * }\n * ```\n */\ninterface GroupByDefinition {\n /** Field to group by */\n field: string;\n /** Metrics to compute per group */\n metrics: MetricDefinition[];\n}","HeaderZoneConfig":"/**\n * Header zone configuration\n *\n * Grid-based layout with start/center/end areas.\n * - start: start-aligned (typically branding: AppIcon, AppTitle)\n * - center: absolutely centered (overlay, regardless of start/end content)\n * - end: end-aligned (typically actions: GoTo, Auth, Language, Theme)\n */\ninterface HeaderZoneConfig {\n /** Start slot - start-aligned, typically branding (AppIcon, AppTitle) */\n start?: SlotContent;\n /** Center slot - absolutely centered overlay, optional (navigation, search) */\n center?: SlotContent;\n /** End slot - end-aligned, typically actions (GoTo, Auth, Language, Theme) */\n end?: SlotContent;\n}","I18nConfig":"/**\n * Interface for configurations to initialize the i18n system\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface I18nConfig {\n /** Patterns for eager namespaces */\n eagerPatterns: string[];\n /** Patterns for lazy namespaces */\n lazyPatterns: string[];\n /** App namespace patterns (eagerly loaded) */\n eagerNamespaces: string[];\n /** Custom namespace patterns for arbitrary use cases (lazily loaded) */\n lazyNamespaces: string[];\n /** Performance options */\n performance: {\n /** Maximum number of translations to keep in memory cache */\n cacheSize: number;\n /** Time to live for cached errors in milliseconds */\n errorCacheTTL: number;\n /** Timeout for loading operations in milliseconds */\n loadTimeout: number;\n };\n /** Language options */\n languages: {\n /** List of supported language codes */\n supported: string[];\n /** Default language code */\n default: string;\n /** Fallback language code */\n fallback: string;\n };\n /** Debug mode flag */\n debug: boolean;\n /** Protocol name for virtual loader (default: 'virtual') */\n virtualProtocol: string;\n /** Additional i18next initialization options */\n i18nextOptions: Partial<InitOptions>;\n /** Force production mode */\n forceProduction: boolean;\n /** Force development mode */\n forceDevelopment: boolean;\n}","I18nPluginConfig":"/**\n * i18n Plugin Configuration\n * @description Configuration for internationalization system\n */\ninterface I18nPluginConfig {\n /** Mapping of language → namespace → loader function */\n mapping: Record<string, Record<string, () => Promise<any>>>;\n /** List of available language codes */\n languages: string[];\n /** List of eagerly loaded namespace identifiers */\n eager: string[];\n /** Fallback language code */\n fallback: string;\n /** Preloaded translation content for eager namespaces (optional) */\n content?: Record<string, Record<string, any>>;\n /** Lazy loader functions — static import() calls generated by Vite plugin (optional, not serializable) */\n loaders?: Record<string, Record<string, () => Promise<any>>>;\n /** Storage configuration */\n storage: {\n /** Storage backend type */\n type: StorageType;\n /** Storage key prefix */\n prefix: string;\n /** Time-to-live in seconds */\n ttl: number;\n /** Whether to encrypt stored data */\n encryption: boolean;\n /** Maximum storage size in bytes */\n maxSize: number;\n };\n /** Performance configuration */\n performance: {\n /** Maximum cache size */\n cacheSize: number;\n /** Error cache TTL in seconds */\n errorCacheTTL: number;\n };\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of translation files */\n totalFiles: number;\n /** Total number of namespaces */\n totalNamespaces: number;\n /** Total number of languages */\n totalLanguages: number;\n /** Number of eagerly loaded namespaces */\n eagerNamespaces: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n /** Whether debug mode is enabled */\n debug: boolean;\n}","I18nProviderProps":"/**\n * Props for the I18nProvider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface I18nProviderProps {\n /** Child components to render */\n children: ReactNode;\n /** Initial configuration */\n config?: Partial<I18nConfig>;\n /** Initial language to use */\n fallbackLng?: string;\n /** Pre-initialized i18n instance */\n i18n?: any;\n /** Optional callback when i18n initialization completes */\n onInitialized?: (i18n: any) => void;\n /** Health monitoring flag (defaults to true) */\n healthMonitoring?: boolean;\n /** Loading component to display while initializing */\n loadingComponent?: ReactNode;\n /** Error component to display if initialization fails */\n errorComponent?: ReactNode;\n}","ICallableProvider":"/**\n * Provider-agnostic interface for calling server-side functions.\n *\n * @example\n * ```typescript\n * const callable: ICallableProvider = new SupabaseCallableProvider(client);\n * const result = await callable.call<{ userId: string }, { success: boolean }>(\n * 'delete-account',\n * { userId: '123' }\n * );\n * ```\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface ICallableProvider {\n call<TReq, TRes>(functionName: string, data: TReq): Promise<TRes>;\n}","ICrudAdapter":"/**\n * Provider-agnostic CRUD adapter interface.\n *\n * Implementations:\n * - `FirestoreAdapter` (Firestore direct)\n * - `FunctionsAdapter` (Firebase callable functions)\n * - Future: Supabase, REST, Postgres adapters\n *\n * @template All methods accept `dndevSchema` for validation/transformation.\n * Adapters that don't need schema can ignore it.\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface ICrudAdapter {\n /**\n * When true, this adapter enforces field-level security server-side.\n * Only server-side adapters may access entities with restricted field visibility.\n * Defaults to false (direct/client-side adapters).\n */\n readonly serverSideOnly?: boolean;\n /**\n * When true, field-level and row-level security is enforced at the database layer\n * (e.g. Supabase RLS + column grants). The framework visibility gate is bypassed\n * because the DB rejects unauthorized reads before any data leaves the server.\n *\n * **Supabase:** requires RLS enabled on every table + column-level grants per role.\n * **Firestore:** Rules are row-level only — field-level filtering needs FunctionsAdapter.\n */\n readonly dbLevelSecurity?: boolean;\n /**\n * A view of this adapter whose reads run as the holder of `accessToken` (the\n * visitor's session during the server render). Only for adapters whose backend\n * verifies the token itself (`dbLevelSecurity`), so a forged token reads nothing.\n * Absent: the server render does not prefetch signed-in visitors' data.\n */\n forAccessToken?(accessToken: string): ICrudAdapter;\n /** Fetch a single document by ID. Returns null if not found. */\n get<T>(collection: string, id: string, schema?: dndevSchema<unknown>, options?: CrudOperationOptions): Promise<T | null>;\n /** Create a new document with auto-generated ID. Returns the ID + parsed data. */\n add<T>(collection: string, data: T, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<{\n id: string;\n data: Record<string, unknown>;\n }>;\n /**\n * Execute a bulk transactional operation.\n * - All ops commit atomically. One transaction/writeBatch.\n * - One round-trip where the transport supports it.\n * - Empty ops returns a zeroed BulkResult without wire contact.\n * - Throws on partial failure; never leaves store in mixed state.\n *\n * @example\n * const r = await adapter.bulk('events', { inserts: [{ title: 'A' }], deletes: ['x'] });\n * r.insertedIds; r.deletedIds;\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<BulkResult>;\n /** Set/replace a document by ID (upsert semantics). */\n set<T>(collection: string, id: string, data: T, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<void>;\n /** Partial update a document by ID. */\n update<T>(collection: string, id: string, data: Partial<T>, options?: CrudOperationOptions): Promise<void>;\n /** Delete a document by ID. */\n delete(collection: string, id: string, options?: CrudOperationOptions): Promise<void>;\n /** Query a collection with filters, ordering, and pagination. schemaType accepts 'list' | 'listCard' or string. */\n query<T>(collection: string, options: QueryOptions, schema?: dndevSchema<unknown>, schemaType?: ListSchemaType | string, operationOptions?: CrudOperationOptions): Promise<PaginatedQueryResult<T>>;\n /**\n * Subscribe to real-time changes on a single document.\n * Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.\n */\n subscribe?<T>(collection: string, id: string, callback: DocumentSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;\n /**\n * Subscribe to real-time changes on a collection query.\n * Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.\n */\n subscribeToCollection?<T>(collection: string, options: QueryOptions, callback: CollectionSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;\n}","ID":"/**\n * Generic ID type used throughout the application\n * @description Currently a string, but typed for future flexibility\n */\ntype ID = string;","INetworkManager":"/**\n * Network manager interface for observing and controlling network status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface INetworkManager {\n /** Get the current network status */\n getStatus(): NetworkStatus;\n /**\n * Observe network status changes\n * @returns An observable of NetworkStatus updates\n */\n observeStatus(): Observable<NetworkStatus>;\n /**\n * Register a callback for reconnection events\n * @param callback Function to execute when network reconnects\n * @returns Unsubscribe function\n */\n onReconnect(callback: NetworkReconnectCallback): () => void;\n /**\n * Manually check connectivity\n * @param url Optional custom URL to check\n * @returns Promise resolving to true if online, false otherwise\n */\n checkConnectivity(url?: string): Promise<boolean>;\n /** Clean up resources */\n destroy(): void;\n}","IServerAuthAdapter":"/**\n * Provider-agnostic server-side auth adapter.\n *\n * Implementations:\n * - `FirebaseServerAuthAdapter` (Firebase Admin SDK)\n * - Future: Supabase server auth, Auth.js, custom JWT adapters\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface IServerAuthAdapter {\n /** Verify an auth token and return the decoded user info. Throws on invalid token. */\n verifyToken(token: string): Promise<VerifiedToken>;\n /** Get a user record by UID. Returns null if not found. */\n getUser(uid: string): Promise<ServerUserRecord | null>;\n /** Set custom claims on a user (merge semantics — existing claims are preserved unless overwritten). */\n setCustomClaims(uid: string, claims: Record<string, unknown>): Promise<void>;\n}","IStorageAdapter":"/**\n * Provider-agnostic storage adapter interface.\n *\n * Implementations:\n * - `FirebaseStorageAdapter` (Firebase Storage)\n * - Future: S3, Cloudflare R2, Supabase Storage adapters\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface IStorageAdapter {\n /** Upload a file or blob to storage. Returns the public URL and storage path. */\n upload(file: File | Blob, options?: UploadOptions): Promise<UploadResult>;\n /** Delete a file by its URL or storage path. */\n delete(urlOrPath: string, options?: {\n signal?: AbortSignal;\n }): Promise<void>;\n /** Get the public download URL for a storage path. */\n getUrl(path: string): Promise<string>;\n}","IStorageManager":"/**\n * Storage manager interface\n * @description Main interface for all storage operations\n */\ninterface IStorageManager {\n /**\n * Retrieve data from storage\n * @param key - Storage key\n * @param options - Storage options\n * @returns Promise resolving to the stored data or null if not found\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options\n * @returns Promise resolving when data is stored\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n * @param key - Storage key\n * @returns Promise resolving when data is removed\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n * @param scope - Scope to clear, or all scopes if not specified\n * @returns Promise resolving when data is cleared\n */\n clear(scope?: StorageScope): Promise<void>;\n /**\n * Store sensitive data with encryption\n * @description Shorthand for set() with encryption=true\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options (encryption will be set to true)\n * @returns Promise resolving when data is stored\n */\n setSecure<T>(key: string, value: T, options?: Omit<StorageOptions, 'encryption'>): Promise<void>;\n /**\n * Retrieve sensitive data with decryption\n * @description Shorthand for get() with encryption=true\n * @param key - Storage key\n * @param options - Storage options (encryption will be set to true)\n * @returns Promise resolving to the decrypted data or null if not found\n */\n getSecure<T>(key: string, options?: Omit<StorageOptions, 'encryption'>): Promise<T | null>;\n}","IStorageStrategy":"/**\n * Storage strategy interface\n * @description Used by StorageManager to delegate storage operations\n */\ninterface IStorageStrategy {\n /**\n * Retrieve data from storage\n * @param key - Storage key\n * @param options - Storage options\n * @returns Promise resolving to the stored data or null if not found\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options\n * @returns Promise resolving when data is stored\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n * @param key - Storage key\n * @returns Promise resolving when data is removed\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n * @param scope - Scope to clear, or all scopes if not specified\n * @returns Promise resolving when data is cleared\n */\n clear(scope?: StorageScope): Promise<void>;\n}","InferEntityRow":"/**\n * Inferred document row for an entity. Always includes `id` so rows are valid for\n * lists, keys, and `Record<string, any>`-shaped component props even when `E` is\n * the widened {@link AnyEntity} (`fields` is only a string index signature).\n */\ntype InferEntityRow<E extends AnyEntity> = EntityRowFromFields<E['fields']> & {\n id: string;\n}","Invoice":"/** Invoice interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Invoice {\n id: string;\n userId: string;\n amount: number;\n currency: string;\n status: 'draft' | 'open' | 'paid' | 'void' | 'uncollectible';\n createdAt: string;\n dueDate?: string;\n paidAt?: string;\n description?: string;\n items: InvoiceItem[];\n}","InvoiceItem":"/**\n * Invoice item interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface InvoiceItem {\n id: string;\n description: string;\n amount: number;\n quantity: number;\n unitPrice: number;\n}","LanguageData":"/**\n * Language data type — single source of truth for language metadata.\n * Used by i18n constants, language store, and language selector components.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageData {\n /** BCP-47 language code (e.g., 'en', 'fr', 'ar-ma') */\n id: string;\n /** English display name */\n name: string;\n /** Native script display name */\n nativeName: string;\n /** Override flag code when it differs from the language id */\n flagCode?: string;\n /** ISO 3166-1 alpha-2 country code */\n countryCode?: string;\n /** International dialing code (e.g., '+33') */\n dialCode?: string;\n /** Human-readable country name for display labels */\n countryName?: string;\n}","LanguageInfo":"/**\n * Interface for language information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageInfo$1 {\n /** ISO 639-1 language code (e.g., 'en', 'fr') */\n code: string;\n /** Native name of the language (e.g., 'English', 'Français') */\n name: string;\n}","LayoutConfig":"/**\n * Layout configuration - simple API for consumers\n *\n * @example\n * ```typescript\n * layout={{\n * preset: 'admin',\n * header: { end: () => <MyButton /> }\n * }}\n * ```\n */\ninterface LayoutConfig {\n /** Breadcrumbs display behavior */\n breadcrumbs?: 'smart' | 'always' | 'never';\n /**\n * Footer scroll behavior\n * - 'fixed': Footer stays at viewport bottom (default on desktop)\n * - 'scroll': Footer scrolls with content (default on mobile, optional on desktop)\n */\n footerMode?: FooterMode;\n /** Header override - full component or slot overrides */\n header?: DnDevOverride | {\n start?: DnDevOverride;\n center?: DnDevOverride;\n end?: DnDevOverride;\n };\n /** Footer override - full component only */\n footer?: DnDevOverride;\n /** Sidebar override - full component or slot overrides */\n sidebar?: DnDevOverride | {\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n /** MergedBar override - full component or slot overrides */\n mergedbar?: DnDevOverride | {\n trigger?: DnDevOverride;\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n /**\n * Main content wrapper — wraps page content inside `<main>`\n *\n * Add custom chrome around page content (split panes, floating panels,\n * terminal docking) without modifying the framework layout.\n * Breadcrumbs, debug tools, and footer remain outside the wrapper.\n *\n * Works with both Vite and Next.js routing.\n *\n * @example\n * ```tsx\n * layout={{\n * wrapper: ({ children }) => (\n * <SplitLayout terminal={<Terminal />}>{children}</SplitLayout>\n * ),\n * }}\n * ```\n */\n wrapper?: DnDevWrapper;\n /** Mobile-specific overrides */\n mobile?: {\n /** Mobile header slot overrides (overrides desktop header on mobile) */\n header?: {\n start?: DnDevOverride;\n center?: DnDevOverride;\n end?: DnDevOverride;\n };\n /** Mobile sidebar slot overrides (overrides desktop sidebar on mobile) */\n sidebar?: {\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n };\n}","LayoutPreset":"/**\n * Layout preset type - auto-derived from constants, with string fallback\n * Accepts known presets OR any string (runtime validates and defaults to 'landing')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype LayoutPreset = (typeof LAYOUT_PRESET)[keyof typeof LAYOUT_PRESET] | string;","LegalCompanyInfo":"/**\n * Company/Publisher Information\n *\n * Information about the company or individual publishing the website\n */\ninterface LegalCompanyInfo {\n /**\n * Full legal name of the company or individual\n * @example \"AMBROISE PARK Consulting\"\n * @example \"John Doe\"\n */\n name: string;\n /**\n * Short name or abbreviation\n * @example \"APC\"\n * @example \"ACME Inc.\"\n */\n shortName?: string;\n /**\n * Legal status/form of the company\n * @example \"SARL\" (France - Limited Liability Company)\n * @example \"SAS\" (France - Simplified Joint-Stock Company)\n * @example \"LLC\" (USA - Limited Liability Company)\n * @example \"GmbH\" (Germany)\n * @example \"Ltd\" (UK)\n */\n legalStatus?: string;\n /**\n * Company registration number\n * @description Required in many countries for legal compliance\n * @example \"123 456 789 00010\" (France - SIRET number)\n * @example \"12345678\" (UK - Company Number)\n * @example \"123-45-6789\" (USA - EIN)\n */\n registrationNumber?: string;\n /**\n * VAT/Tax identification number\n * @description Required for EU businesses and many other jurisdictions\n * @example \"FR12345678901\" (France)\n * @example \"DE123456789\" (Germany)\n * @example \"GB123456789\" (UK)\n */\n vatNumber?: string;\n /**\n * Share capital (for companies)\n * @description Required to be disclosed in some jurisdictions (e.g., France)\n * @example \"10,000 EUR\"\n * @example \"50,000 USD\"\n */\n shareCapital?: string;\n}","LegalConfig":"/**\n * Complete Legal Configuration\n *\n * @description\n * Centralized configuration for all legal pages (Terms, Privacy, Legal Notice).\n * Configure this once in your app's config/legal.ts file.\n *\n * @example\n * ```typescript\n * import type { LegalConfig } from '@donotdev/types';\n *\n * export const legalConfig: LegalConfig = {\n * company: {\n * name: 'ACME Corporation',\n * legalStatus: 'LLC',\n * registrationNumber: '123456789',\n * vatNumber: 'US123456789',\n * },\n * contact: {\n * address: '123 Main St, City, State 12345, Country',\n * email: 'legal@acme.com',\n * supportEmail: 'support@acme.com',\n * privacyEmail: 'privacy@acme.com',\n * dpoEmail: 'dpo@acme.com',\n * },\n * director: {\n * name: 'John Doe',\n * role: 'CEO',\n * },\n * hosting: {\n * provider: 'Firebase Hosting by Google',\n * contact: 'https://firebase.google.com/support',\n * },\n * jurisdiction: {\n * country: 'United States',\n * },\n * website: {\n * url: 'https://acme.com',\n * },\n * };\n * ```\n */\ninterface LegalConfig {\n /** Company/Publisher information */\n company: LegalCompanyInfo;\n /** Contact information */\n contact: LegalContactInfo;\n /** Publication director information */\n director: LegalDirectorInfo;\n /** Hosting provider information */\n hosting: LegalHostingInfo;\n /** Legal jurisdiction information */\n jurisdiction: LegalJurisdictionInfo;\n /** Website information */\n website: LegalWebsiteInfo;\n /** Sections configuration for legal pages */\n sections: LegalSectionsConfig;\n /** Last updated dates (ISO strings) for each legal page */\n lastUpdated?: {\n /** Terms of Service last updated date (ISO string) */\n terms?: string;\n /** Privacy Policy last updated date (ISO string) */\n privacy?: string;\n /** Legal Notice last updated date (ISO string) */\n legalNotice?: string;\n };\n}","LegalContactInfo":"/**\n * Contact Information\n *\n * Various contact points for legal, support, and privacy inquiries\n */\ninterface LegalContactInfo {\n /**\n * Registered office address\n * @description Physical address where the company is legally registered\n * @example \"123 rue de la Paix, 75001 Paris, France\"\n * @example \"1 Main Street, Suite 100, New York, NY 10001, USA\"\n */\n address: string;\n /**\n * General legal contact email\n * @description For legal inquiries and notices\n * @example \"legal@company.com\"\n */\n email: string;\n /**\n * Contact phone number\n * @description Optional but recommended for legal compliance\n * @example \"+33 1 23 45 67 89\"\n * @example \"+1 (555) 123-4567\"\n */\n phone?: string;\n /**\n * Support email for customer inquiries\n * @example \"support@company.com\"\n */\n supportEmail: string;\n /**\n * Privacy-specific email\n * @description For privacy policy and data protection inquiries\n * @example \"privacy@company.com\"\n */\n privacyEmail: string;\n /**\n * Data Protection Officer (DPO) email\n * @description Required for GDPR compliance if you process significant personal data\n * @example \"dpo@company.com\"\n */\n dpoEmail: string;\n}","LegalDirectorInfo":"/**\n * Publication Director Information\n *\n * Information about the person responsible for the website's content\n * Required by law in France (\"Directeur de la publication\")\n */\ninterface LegalDirectorInfo {\n /**\n * Full name of the publication director\n * @description The person legally responsible for the website's content\n * @example \"John Doe\"\n * @example \"Jane Smith\"\n */\n name: string;\n /**\n * Role/title of the publication director\n * @example \"CEO\"\n * @example \"Directeur Général\"\n * @example \"Managing Director\"\n */\n role?: string;\n}","LegalHostingInfo":"/**\n * Hosting Provider Information\n *\n * Information about where and how the website is hosted\n * Required by law in many jurisdictions including France\n */\ninterface LegalHostingInfo {\n /**\n * Name of the hosting provider\n * @example \"Firebase Hosting by Google\"\n * @example \"AWS (Amazon Web Services)\"\n * @example \"OVH\"\n */\n provider: string;\n /**\n * Hosting provider's address\n * @description Physical address of the hosting company\n * @example \"Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA\"\n */\n address?: string;\n /**\n * Hosting provider contact information\n * @description URL or email to contact the hosting provider\n * @example \"https://firebase.google.com/support\"\n * @example \"support@hostingprovider.com\"\n */\n contact?: string;\n}","LegalJurisdictionInfo":"/**\n * Legal Jurisdiction Information\n *\n * Information about the legal jurisdiction and dispute resolution\n */\ninterface LegalJurisdictionInfo {\n /**\n * Country or jurisdiction where the company operates\n * @example \"France\"\n * @example \"United States\"\n * @example \"United Kingdom\"\n */\n country: string;\n /**\n * Arbitration organization for dispute resolution\n * @example \"Centre de Médiation et d'Arbitrage de Paris\"\n * @example \"American Arbitration Association\"\n * @example \"International Chamber of Commerce\"\n */\n arbitrationOrg?: string;\n /**\n * Location where arbitration would take place\n * @example \"Paris, France\"\n * @example \"New York, NY\"\n */\n arbitrationLocation?: string;\n}","LegalSectionsConfig":"/**\n * Optional Sections Configuration for Legal Pages\n */\ninterface LegalSectionsConfig {\n /**\n * Terms of Service optional sections\n */\n terms?: {\n /** Include children-specific provisions (COPPA, etc.) */\n children?: boolean;\n /** Include international users provisions */\n international?: boolean;\n /** Include California-specific provisions (CCPA, etc.) */\n california?: boolean;\n /** Include EU-specific provisions */\n eu?: boolean;\n };\n /**\n * Privacy Policy optional sections\n */\n privacy?: {\n /** Include children's privacy provisions (COPPA, etc.) */\n children?: boolean;\n /** Include international data transfer provisions */\n international?: boolean;\n /** Include California privacy rights (CCPA, etc.) */\n california?: boolean;\n /** Include EU privacy provisions (GDPR) */\n eu?: boolean;\n };\n /**\n * Legal Notice optional sections\n */\n legalNotice?: {\n /** Include intellectual property notice */\n intellectualProperty?: boolean;\n /** Include personal data reference/link to privacy policy */\n personalData?: boolean;\n /** Include cookies reference/link to privacy policy */\n cookies?: boolean;\n };\n}","LegalWebsiteInfo":"/**\n * Website Information\n */\ninterface LegalWebsiteInfo {\n /**\n * Main website URL\n * @example \"https://company.com\"\n * @example \"https://www.example.com\"\n */\n url: string;\n}","ListCardLayout":"/**\n * Slot-based card layout for listCardFields.\n * Maps entity field names to card slots (title, subtitle, content, footer).\n */\ninterface ListCardLayout {\n /** Fields rendered as the card title (joined with titleSeparator) */\n title?: string[];\n /**\n * Separator used to join multiple title field values.\n * @default ' '\n * @example `titleSeparator: ' - '` → \"Paris 20e arr. - 20m²\"\n */\n titleSeparator?: string;\n /** Fields rendered as the card subtitle */\n subtitle?: string[];\n /** Fields rendered in the card body (supports images) */\n content?: string[];\n /** Fields rendered in the card footer */\n footer?: string[];\n}","ListEntitiesRequest":"/**\n * List entities request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ListEntitiesRequest = v.InferOutput<typeof listEntitiesSchema>;","ListEntitiesResponse":"/**\n * List entities response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListEntitiesResponse {\n success: boolean;\n data: Record<string, any>[];\n total: number;\n hasMore: boolean;\n}","ListEntityData":"/**\n * Data required for listing entities\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListEntityData<T extends Record<string, any>> extends ListOptions {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n}","ListOptions":"/**\n * Options for listing operations.\n * Used to customize the behavior of list hooks.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListOptions {\n /** The page number (1-indexed) to fetch */\n page?: number;\n /** The number of items per page */\n pageSize?: number;\n /** Filters to apply to the list */\n filters?: Record<string, any>;\n /** Sorting options */\n sort?: {\n /** The field to sort by */\n field: string;\n /** The direction to sort in */\n direction: 'asc' | 'desc';\n };\n}","ListResponse":"/**\n * Standard response for list operations.\n * Used by list hooks to return paginated data.\n * @template T - The type of items in the list\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListResponse<T> {\n /** The items in the current page */\n items: T[];\n /** The total number of items across all pages */\n total: number;\n /** The current page number */\n page: number;\n /** The number of items per page */\n pageSize: number;\n /** Whether there are more pages to fetch */\n hasMore: boolean;\n}","ListSchemaType":"/** Schema variant for list queries (table vs card grid). */\ntype ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];","LoadingActions":"/**\n * Loading actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LoadingActions {\n /** Set the loading state */\n setLoading: (isLoading: boolean) => void;\n /** Set the fetching state */\n setFetching: (isFetching: boolean) => void;\n}","LoadingState":"/**\n * Loading state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LoadingState {\n /** Whether a data fetch operation is in progress */\n isLoading: boolean;\n /** Whether a background fetch operation is in progress */\n isFetching: boolean;\n}","MergedBarConfig":"/**\n * MergedBar configuration for mobile\n *\n * Fixed trigger bar that opens a Sheet with navigation content.\n * Each slot is customizable per-preset, with smart defaults.\n */\ninterface MergedBarConfig {\n /** Position of the trigger bar */\n position: 'top' | 'bottom';\n /** Height of the trigger bar (default: 64px for top, 48px for bottom) */\n height?: string;\n /** Trigger bar content (default: header.start for top, footer-like for bottom) */\n trigger?: SlotContent;\n /** Sheet top slot */\n top?: SlotContent;\n /** Sheet content slot - scrollable (default: sidebar.content) */\n content?: SlotContent;\n /** Sheet bottom slot (default: sidebar.bottom) */\n bottom?: SlotContent;\n}","MergedEntityFieldMap":"/**\n * Consumer `fields` merged with {@link BaseEntityFields} — same keys {@link defineEntity} returns.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype MergedEntityFieldMap<F extends Record<string, EntityField>> = F & BaseEntityFields;","MetricDefinition":"/**\n * Single metric definition for aggregation\n *\n * @example\n * ```typescript\n * // Count all documents\n * { field: '*', operation: 'count', as: 'total' }\n *\n * // Sum a numeric field\n * { field: 'price', operation: 'sum', as: 'totalValue' }\n *\n * // Count with filter\n * {\n * field: '*',\n * operation: 'count',\n * as: 'availableCount',\n * filter: { field: 'status', operator: '==', value: 'available' }\n * }\n * ```\n */\ninterface MetricDefinition {\n /** Field to aggregate ('*' for count all) */\n field: string;\n /** Aggregation operation */\n operation: AggregateOperation;\n /** Output name for this metric */\n as: string;\n /** Optional filter for this metric */\n filter?: {\n field: string;\n operator: AggregateFilterOperator;\n value: any;\n };\n}","MobileBehaviorConfig":"/**\n * Mobile behavior configuration\n *\n * Defines how the layout adapts on mobile/tablet breakpoints.\n */\ninterface MobileBehaviorConfig {\n /** Breakpoint at which mobile behavior activates (default: 1024px) */\n breakpoint?: number;\n /** Header slot overrides for mobile (overrides desktop header slots) */\n header?: HeaderZoneConfig;\n /** Sidebar slot overrides for mobile (overrides desktop sidebar slots) */\n sidebar?: SidebarZoneConfig;\n /** MergedBar configuration - replaces header/footer with sheet trigger */\n mergedBar?: MergedBarConfig;\n}","ModalActions":"/**\n * Modal actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ModalActions {\n /** Open the modal with content */\n openModal: (content: ReactNode) => void;\n /** Close the modal */\n closeModal: () => void;\n}","ModalState":"/**\n * Modal state and actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ModalState {\n /** Whether the modal is currently open */\n isOpen: boolean;\n /** Modal content */\n content: ReactNode | null;\n}","MutableMergedEntityFieldMap":"/**\n * Merged field map with `readonly` stripped from keys — improves assignability of\n * `defineEntity` results to widened {@link AnyEntity} props.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype MutableMergedEntityFieldMap<F extends Record<string, EntityField>> = {\n -readonly [K in keyof MergedEntityFieldMap<F>]: MergedEntityFieldMap<F>[K];\n}","MutationResponse":"/**\n * Standard response for mutations.\n * Used by create, update, and delete hooks to return the result of the operation.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface MutationResponse {\n /** The ID of the affected entity */\n id: string;\n /** Additional fields that may be returned by the mutation */\n [key: string]: any;\n}","NavigationRoute":"/**\n * Navigation route interface\n * @description Single source of truth for all navigation routes\n */\ninterface NavigationRoute {\n /** Route path */\n path: string;\n /** Display label for navigation */\n label: string;\n /** Optional icon identifier or component */\n icon?: string | ReactNode;\n /** Whether route is external */\n external?: boolean;\n /** Whether route is disabled */\n disabled?: boolean;\n /** Badge content for notifications */\n badge?: string | number;\n /** Authentication configuration */\n auth?: PageAuth;\n /** Route metadata (includes auto-discovered fields) */\n meta?: RouteMeta;\n /** Nested child routes */\n children?: NavigationRoute[];\n}","NetworkCheckConfig":"/**\n * Configuration options for the NetworkManager.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkCheckConfig {\n /**\n * URL to ping (using a HEAD request) to verify actual internet connectivity.\n * Defaults to a reliable Google endpoint. Set to null or empty string to disable pinging.\n * @default \"https://www.gstatic.com/generate_204\"\n */\n pingEndpoint?: string | null;\n /**\n * Timeout in milliseconds for the ping request.\n * @default 5000\n */\n pingTimeout?: number;\n /**\n * Interval in milliseconds for periodically checking network connectivity via ping.\n * @default 30000 (30 seconds)\n */\n checkInterval?: number;\n /**\n * Debounce time in milliseconds for processing browser online/offline events\n * to avoid rapid status fluctuations.\n * @default 300\n */\n debounceTime?: number;\n}","NetworkConnectionType":"/**\n * Possible network connection types based on the Network Information API\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype NetworkConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown';","NetworkReconnectCallback":"/**\n * Function signature for network reconnection callbacks\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype NetworkReconnectCallback = () => void;","NetworkState":"/**\n * Network state specifically for store usage\n * Variant of NetworkStatus with string timestamp for serialization\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkState$1 {\n /** Whether the device is currently online */\n online: boolean;\n /**\n * Type of network connection if available\n * Uses the full range of network connection types from the Network Information API\n */\n connectionType: NetworkConnectionType;\n /**\n * The effective connection type based on measured performance.\n * Based on the Network Information API, might be 'unknown' if unavailable.\n */\n effectiveType?: EffectiveConnectionType | string;\n /** ISO date string of when network status was last checked */\n lastChecked: string;\n}","NetworkStatus":"/**\n * Represents the network connectivity status.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkStatus {\n /**\n * Indicates whether the device has an active internet connection.\n * This is the primary status that authentication and other critical systems should check.\n */\n online: boolean;\n /**\n * The general type of the current network connection.\n * Based on the Network Information API.\n */\n connectionType: NetworkConnectionType;\n /**\n * The effective connection type based on measured performance.\n * Based on the Network Information API, might be 'unknown' if unavailable.\n */\n effectiveType?: EffectiveConnectionType | string;\n /** The timestamp when the network status was last checked or updated. */\n lastChecked: Date;\n}","NetworkStatusHookResult":"/**\n * Result type for the useNetworkStatus hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkStatusHookResult {\n online: boolean;\n connectionType: string;\n}","OAuthAPI":"/**\n * OAuth API type - complete interface for useOAuth hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthAPI {\n /**\n * Unified feature status - single source of truth for OAuth state.\n * Replaces deprecated `loading` boolean flag.\n * - `initializing`: OAuth is loading/initializing\n * - `ready`: OAuth fully operational\n * - `degraded`: OAuth unavailable (feature not installed/consent not given)\n * - `error`: OAuth encountered error\n */\n status: FeatureStatus;\n error: string | null;\n partners: Record<OAuthPartnerId, any>;\n connectedPartners: OAuthPartnerId[];\n connect: (partnerId: OAuthPartnerId, options?: ConnectOptions) => Promise<void>;\n disconnect: (partnerId: OAuthPartnerId) => Promise<void>;\n isConnected: (partnerId: OAuthPartnerId) => boolean;\n getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;\n handleCallback: (partnerId: OAuthPartnerId, code: string, state?: string) => Promise<void>;\n isAvailable: boolean;\n}","OAuthApiRequestOptions":"/**\n * OAuth API request options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthApiRequestOptions extends RequestInit {\n autoRefresh?: boolean;\n requireConnection?: boolean;\n}","OAuthCallbackHookResult":"/**\n * OAuth callback hook result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthCallbackHookResult {\n isCallback: boolean;\n processing: boolean;\n result: OAuthResult | null;\n partnerName: string | null;\n success: boolean;\n error: Error | null;\n}","OAuthConnection":"/**\n * OAuth connection interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnection {\n partnerId: OAuthPartnerId;\n status: OAuthConnectionStatus;\n connectedAt?: Date;\n lastError?: string;\n userData?: any;\n lastTokenUpdate?: Date;\n}","OAuthConnectionInfo":"/**\n * OAuth connection info interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnectionInfo {\n id: string;\n userId: string;\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n connected: boolean;\n createdAt: string;\n updatedAt: string;\n lastUsed?: string;\n credentials?: OAuthCredentials;\n profile?: BaseUserProfile;\n}","OAuthConnectionRequest":"/**\n * OAuth connection request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnectionRequest {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n credentials: OAuthCredentials;\n profile?: BaseUserProfile;\n}","OAuthConnectionStatus":"/**\n * OAuth connection status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error' | 'expired';","OAuthCredentials":"/**\n * OAuth credentials interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthCredentials extends BaseCredentials {\n accessToken: string;\n refreshToken?: string;\n idToken?: string;\n tokenType?: string;\n expiresIn?: number;\n}","OAuthEventData":"/**\n * OAuth event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthEventData {\n userId?: string;\n partnerId?: string;\n token?: string;\n error?: any;\n timestamp: Date;\n metadata?: Record<string, any>;\n}","OAuthEventKey":"/**\n * Type for OAuth event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthEventKey = keyof typeof OAUTH_EVENTS;","OAuthEventName":"/**\n * Type for OAuth event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthEventName = (typeof OAUTH_EVENTS)[OAuthEventKey];","OAuthPartner":"/**\n * OAuth partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPartner = (typeof OAUTH_PARTNERS)[OAuthPartnerId];","OAuthPartnerHookResult":"/**\n * OAuth partner hook result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerHookResult {\n partnerState: OAuthPartnerState;\n isConnecting: boolean;\n isConnected: boolean;\n error: Error | null;\n credentials: OAuthCredentials | null;\n connect: (options?: {\n purpose?: OAuthPurpose;\n redirectUri?: string;\n scopes?: string[];\n additionalParams?: Record<string, string>;\n onSuccess?: (result: OAuthPartnerResult) => void;\n onError?: (error: Error) => void;\n }) => Promise<void>;\n disconnect: () => Promise<boolean>;\n refreshToken: () => Promise<OAuthCredentials | null>;\n request: <T = any>(url: string, options?: OAuthApiRequestOptions) => Promise<T>;\n}","OAuthPartnerId":"/**\n * OAuth partner ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPartnerId = keyof typeof OAUTH_PARTNERS;","OAuthPartnerResult":"/**\n * OAuth partner result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerResult extends PartnerResult {\n partnerId: OAuthPartnerId;\n purpose: OAuthPurpose;\n credentials?: OAuthCredentials;\n}","OAuthPartnerState":"/**\n * OAuth partner state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerState extends PartnerConnectionState {\n partnerId: OAuthPartnerId;\n config: OAuthPartner;\n credentials: OAuthCredentials | null;\n}","OAuthPurpose":"/**\n * OAuth purpose type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPurpose = 'authentication' | 'api-access';","OAuthRedirectOperation":"/**\n * OAuth partner redirect operations - DRY derived from OAUTH_PARTNERS schema\n * Format: `oauth-api-${partnerId}` for API-only OAuth partners\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthRedirectOperation = `oauth-api-${OAuthPartnerId}","OAuthRefreshRequest":"/**\n * OAuth refresh request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthRefreshRequest {\n provider: OAuthPartnerId;\n refreshToken: string;\n redirectUri: string;\n}","OAuthRefreshResponse":"/**\n * OAuth refresh response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthRefreshResponse {\n access_token: string;\n token_type?: string;\n expires_in?: number;\n refresh_token?: string;\n scope?: string;\n}","OAuthResult":"/**\n * OAuth result type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthResult = {\n success: true;\n partner: string;\n accessToken: string;\n refreshToken?: string;\n idToken?: string;\n expiresIn?: number;\n scope?: string;\n tokenType?: string;\n profile?: Record<string, any>;\n}","OAuthStoreActions":"/**\n * OAuth store actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthStoreActions {\n setLoading: (loading: boolean) => void;\n setGlobalError: (error: Error | null) => void;\n reset: () => void;\n isConnected: (partnerId: OAuthPartnerId, purpose?: OAuthPurpose) => boolean;\n getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;\n}","OAuthStoreState":"/**\n * OAuth store state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthStoreState {\n connections: Record<OAuthPartnerId, OAuthPartnerState>;\n loading: boolean;\n error: Error | null;\n}","Observable":"/**\n * Generic observable interface to avoid circular dependencies\n * This allows us to define the interface without depending on Subject implementation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Observable<T> {\n subscribe: (next: (value: T) => void, error?: (error: any) => void, complete?: () => void) => {\n unsubscribe: () => void;\n };\n}","OrderByClause":"/**\n * Firestore orderBy clause tuple\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OrderByClause = [string, 'asc' | 'desc'];","OrderDirection":"/** Sort direction for query orderBy clauses. */\ntype OrderDirection = (typeof ORDER_DIRECTION)[keyof typeof ORDER_DIRECTION];","OrderHookContext":"/**\n * Context passed to order webhook hooks.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface OrderHookContext {\n userId: string;\n orderId: string;\n billingConfigKey: string;\n /**\n * Stripe event ID. Delivery is at-least-once: the same event can reach a hook\n * again (retry after a failed or unrecorded run). Key side effects on\n * `orderId` (or `eventId`) so a replay is a no-op.\n */\n eventId: string;\n}","PWAAssetType":"/**\n * PWA asset type derived from PWA_ASSET_TYPES constant\n */\ntype PWAAssetType = (typeof PWA_ASSET_TYPES)[keyof typeof PWA_ASSET_TYPES];","PWADisplayMode":"/**\n * PWA display mode type derived from PWA_DISPLAY_MODES constant\n */\ntype PWADisplayMode = (typeof PWA_DISPLAY_MODES)[keyof typeof PWA_DISPLAY_MODES];","PWAPluginConfig":"/**\n * PWA Plugin Configuration\n * @description Configuration for Progressive Web App features\n */\ninterface PWAPluginConfig {\n /** Array of PWA assets */\n assets: Array<{\n /** Type of PWA asset */\n type: PWAAssetType;\n /** Asset file path */\n path: string;\n /** Asset file size in bytes */\n size?: number;\n /** Asset content (for inline assets) */\n content?: any;\n /** Asset format (for images) */\n format?: string;\n /** Asset purpose (for icons) */\n purpose?: string;\n }>;\n /** PWA manifest configuration */\n manifest: {\n /** Application name */\n name: string;\n /** Short application name */\n short_name: string;\n /** Application description */\n description: string;\n /** Start URL */\n start_url: string;\n /** Display mode */\n display: PWADisplayMode;\n /** Background color */\n background_color: string;\n /** Theme color */\n theme_color: string;\n /** Array of app icons */\n icons: Array<{\n /** Icon source path */\n src: string;\n /** Icon sizes (e.g., '192x192') */\n sizes: string;\n /** Icon MIME type */\n type: string;\n /** Icon purpose (e.g., 'any', 'maskable') */\n purpose: string;\n }>;\n };\n /** Discovery manifest metadata */\n manifestInfo: {\n /** Total number of PWA assets */\n totalAssets: number;\n /** Total number of icons */\n totalIcons: number;\n /** Whether service worker is present */\n hasServiceWorker: boolean;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","PageAuth":"/**\n * Page-level authentication requirements\n * @description Used in PageMeta and NavigationRoute for route-level auth\n */\ntype PageAuth = boolean | {\n /** Whether authentication is required */\n required?: boolean;\n /** Required user role */\n role?: UserRole;\n /** Required subscription tier */\n tier?: SubscriptionTier;\n /** Custom validation function */\n validate?: (role: string, tier: string) => boolean;\n}","PageMeta":"/** Page-level metadata for route discovery, auth, SEO, and navigation. */\ninterface PageMeta {\n /** Authentication requirements for this route */\n auth?: PageAuth;\n /** Route configuration - just define the exact path you want */\n route?: string | {\n params?: string[];\n };\n /** Page title (optional - framework auto-extracts from filename if not provided) */\n title?: string;\n /**\n * Translation/SEO namespace for this page\n * @description Used for meta tags and translations\n */\n namespace?: string;\n /**\n * Icon for navigation (optional - framework provides smart defaults)\n * @description **ONLY lucide-react JSX components** - extracted as component name string at build time for tree-shaking.\n *\n * **RESTRICTIONS:**\n * - ✅ Only: `<Rocket />`, `<ShoppingCart />`, `<Home />` (lucide-react JSX components)\n * - ❌ NOT: Emojis (`\"🚀\"`), strings (`\"Rocket\"`), or custom ReactNode\n *\n * **Why?** This is for build-time extraction and tree-shaking. The component name is extracted and stored as a string.\n *\n * **For flexible icons** (emojis, strings, custom components), use the `Icon` component directly in your JSX, not in PageMeta.\n *\n * @example\n * ```tsx\n * import { Rocket } from 'lucide-react';\n * export const meta: PageMeta = {\n * icon: <Rocket /> // ✅ Correct - lucide-react component\n * };\n * ```\n *\n * @example\n * ```tsx\n * // ❌ WRONG - Don't use emojis or strings in PageMeta\n * export const meta: PageMeta = {\n * icon: \"🚀\" // ❌ Not supported in PageMeta\n * };\n * ```\n */\n icon?: ReactNode;\n /**\n * Hide from navigation menu (default: false - shows in navigation)\n * @description Set to true to exclude this route from navigation menus\n * @default false\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * hideFromMenu: true // Won't appear in HeaderNavigation, Sidebar, etc.\n * };\n * ```\n */\n hideFromMenu?: boolean;\n /**\n * Hide breadcrumbs on this page (default: false)\n * @description Set to true to hide framework breadcrumbs on this route\n * @default false\n */\n hideBreadcrumbs?: boolean;\n /**\n * Layout preset override for this route\n * @description When set, overrides the app's default layout preset for this route only.\n * When absent, the app's `appConfig.preset` is used.\n * The override is transient — navigating away restores the next route's preset or the app default.\n *\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * preset: 'admin', // This route uses admin layout (sidebar, compact density)\n * auth: true,\n * };\n * ```\n */\n preset?: LayoutPreset;\n /**\n * SEO metadata override\n * @description Fine-grained control over `<title>`, meta description, and Open Graph tags.\n * When omitted, SEO uses i18n lookup based on `namespace` (i18n-first by default).\n *\n * @example Escape \"Page | App\" format\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'home',\n * seo: { fullTitle: 'DoNotDev - Build Apps in Minutes' },\n * };\n * ```\n *\n * @example siteName only (no page title)\n * ```tsx\n * export const meta: PageMeta = {\n * seo: { title: null },\n * };\n * ```\n */\n seo?: SeoMeta;\n /**\n * User-facing category for sidebar/menu grouping\n * @description Groups routes into collapsible sections in navigation. Unlike\n * auto-discovered `entity` (parent-dir name), `category` is author-declared\n * and typically maps to a higher-level folder (e.g., `Analyzers`, `Tools`).\n * Routes without `category` render ungrouped at the top of the menu.\n *\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'budgetPlanner',\n * category: 'Analyzers',\n * icon: <WalletIcon />,\n * };\n * ```\n */\n category?: string;\n}","PaginatedQueryResult":"/**\n * Paginated query result returned by adapter.query().\n * @template T - The entity type\n */\ninterface PaginatedQueryResult<T> {\n items: T[];\n total?: number;\n hasMore?: boolean;\n /** Opaque cursor for the next page */\n lastVisible?: string | null;\n}","PaginationOptions":"/**\n * Generic pagination options for fetching paginated data\n */\ninterface PaginationOptions {\n /** The page number (1-indexed) */\n page: number;\n /** The number of items per page */\n pageSize: number;\n}","PaidLineItem":"/**\n * One paid line, read back from Stripe (amounts as charged).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface PaidLineItem {\n productId: string;\n name: string;\n quantity: number;\n /** Amounts in the smallest currency unit */\n amountSubtotal: number;\n amountDiscount: number;\n amountTax: number;\n amountTotal: number;\n}","PartnerConnectionState":"/**\n * Partner connection state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PartnerConnectionState {\n isConnecting: boolean;\n isConnected: boolean;\n error: Error | null;\n}","PartnerIconId":"/**\n * Partner icon ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerIconId = keyof typeof PARTNER_ICONS;","PartnerId":"/**\n * Partner ID type (auth or OAuth)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerId = AuthPartnerId | OAuthPartnerId;","PartnerResult":"/**\n * Shared primitives for auth and oauth partner flows\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PartnerResult {\n success: boolean;\n error?: string;\n userInfo?: {\n id: string;\n name?: string;\n username?: string;\n email?: string;\n photoURL?: string;\n };\n}","PartnerType":"/**\n * Partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerType = 'auth' | 'oauth' | 'both';","PayloadCacheEventData":"/**\n * Payload cache event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadCacheEventData {\n reason: string;\n scope: string;\n tags: string[];\n priority: string;\n timestamp: string;\n}","PayloadDocument":"/**\n * Payload document interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadDocument {\n id: string;\n [key: string]: any;\n}","PayloadDocumentEventData":"/**\n * Payload document event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadDocumentEventData {\n collection: string;\n documentId: string;\n operation: string;\n doc: any;\n previousDoc?: any;\n req: any;\n timestamp: string;\n}","PayloadEventKey":"/**\n * Type for Payload event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PayloadEventKey = keyof typeof PAYLOAD_EVENTS;","PayloadEventName":"/**\n * Type for Payload event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PayloadEventName = (typeof PAYLOAD_EVENTS)[PayloadEventKey];","PayloadGlobalEventData":"/**\n * Payload global event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadGlobalEventData {\n globalSlug: string;\n doc: any;\n previousDoc?: any;\n req: any;\n affectedPages: string[];\n timestamp: string;\n}","PayloadMediaEventData":"/**\n * Payload media event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadMediaEventData {\n mediaId: string;\n operation: string;\n media: any;\n previousMedia?: any;\n req: any;\n timestamp: string;\n}","PayloadPageRegenerationEventData":"/**\n * Payload page regeneration event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadPageRegenerationEventData {\n paths: string[];\n reason: string;\n priority: string;\n seoImpact: boolean;\n timestamp: string;\n}","PayloadRequest":"/**\n * Payload request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadRequest {\n method: string;\n url: string;\n headers: Record<string, string>;\n body?: any;\n user?: any;\n timestamp: string;\n}","PayloadUserEventData":"/**\n * Payload user event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadUserEventData {\n userId: string;\n operation: string;\n user: any;\n req: any;\n timestamp: string;\n}","PaymentEventData":"/**\n * Payment event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PaymentEventData {\n paymentId: string;\n amount: number;\n currency: string;\n status: 'succeeded' | 'failed' | 'pending' | 'refunded';\n subscription?: Record<string, unknown>;\n invoice?: Record<string, unknown>;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","PaymentMethod":"/** Payment method interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PaymentMethod {\n id: string;\n userId: string;\n type: PaymentMethodType;\n isDefault: boolean;\n last4?: string;\n brand?: string;\n expiryMonth?: number;\n expiryYear?: number;\n createdAt: string;\n updatedAt: string;\n}","PaymentMethodType":"/** Payment method types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PaymentMethodType = 'card' | 'bank_account' | 'paypal' | 'apple_pay' | 'google_pay';","PaymentMode":"/**\n * Type for payment mode names\n * Apps can extend this with their own custom modes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PaymentMode = (typeof STRIPE_MODES)[keyof typeof STRIPE_MODES] | string;","Permission":"/**\n * Type for permission names\n * Apps can extend this with their own custom permissions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Permission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS] | string;","Picture":"/**\n * Picture type for image fields\n * Represents uploaded image with full and thumbnail URLs\n */\ninterface Picture {\n fullUrl: string;\n thumbUrl: string;\n}","Platform":"/**\n * Platform type derived from PLATFORMS constant\n */\ntype Platform = (typeof PLATFORMS)[keyof typeof PLATFORMS];","PresetConfig":"/**\n * Complete preset configuration\n *\n * Declarative configuration for a layout preset.\n * Uses function-based slots, same API as consumers.\n *\n * @example\n * ```typescript\n * const landingPreset: PresetConfig = {\n * name: 'landing',\n * header: {\n * start: () => <AppBranding />,\n * center: () => null,\n * end: () => (\n * <>\n * <GoTo />\n * <AuthHeader />\n * </>\n * ),\n * },\n * mobile: {\n * header: {\n * end: () => <HeaderMenu>{desktop end content}</HeaderMenu>,\n * },\n * },\n * };\n * ```\n */\ninterface PresetConfig {\n /** Preset identifier (must match LayoutPreset type) */\n name: LayoutPreset;\n /** Header zone configuration (undefined = use defaults, object = override slots, function = custom mode) */\n header?: HeaderZoneConfig | SlotContent;\n /** Sidebar zone configuration (undefined = use defaults, object = override slots, function = custom mode) */\n sidebar?: SidebarZoneConfig | SlotContent;\n /** Footer zone configuration (undefined = use defaults, object = override) */\n footer?: FooterZoneConfig;\n /** Footer scroll behavior override for this preset */\n footerMode?: FooterMode;\n /** Mobile behavior configuration */\n mobile?: MobileBehaviorConfig;\n}","PresetRegistry":"/**\n * Preset registry type\n *\n * Maps preset names to their configurations.\n */\ntype PresetRegistry = Record<LayoutPreset, PresetConfig>;","ProcessPaymentSuccessRequest":"/**\n * Process payment success request\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ProcessPaymentSuccessRequest {\n sessionId: string;\n}","ProcessPaymentSuccessResponse":"/**\n * Process payment success response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ProcessPaymentSuccessResponse {\n success: boolean;\n sessionId: string;\n}","ProductDeclaration":"/**\n * Product declaration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ProductDeclaration = v.InferOutput<typeof ProductDeclarationSchema> & {\n onPurchaseSuccess?: (userId: string, metadata: any) => Promise<void>;\n onPurchaseFailure?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCreated?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionRenewed?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCancelled?: (userId: string, metadata: any) => Promise<void>;\n onPaymentFailed?: (userId: string, metadata: any) => Promise<void>;\n}","ProviderInstances":"/**\n * A map containing instances of authentication providers.\n * Uses schema discovery to support all AUTH_PARTNERS automatically.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ProviderInstances = Record<AuthPartnerId, any>;","QueryConfig":"/**\n * Query cache configuration\n *\n * Configure default TanStack Query cache behavior for your app.\n * These settings apply to all queries unless overridden per-query.\n *\n * **Framework Defaults (Infinite Cache):**\n * - `staleTime: Infinity` (data never becomes stale)\n * - `refetchOnWindowFocus: false` (manual refresh only)\n * - `refetchOnReconnect: false` (manual refresh only)\n *\n * This default strategy minimizes API costs and is ideal for:\n * - Single-admin apps\n * - Apps with manual refresh buttons\n * - Cost-optimized scenarios\n *\n * @example\n * ```typescript\n * // Use framework defaults (infinite cache, no auto-refetch)\n * // No query config needed - defaults are optimal\n * ```\n *\n * @example\n * ```typescript\n * // Override to short cache with auto-refetch\n * query: {\n * staleTime: 1000 * 60 * 5, // 5 minutes\n * refetchOnWindowFocus: true,\n * refetchOnReconnect: true,\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface QueryConfig {\n /** Time until data is considered stale (default: Infinity = never stale) */\n staleTime?: number;\n /** Time until inactive data is garbage collected (default: 30 minutes) */\n gcTime?: number;\n /** Number of retry attempts for failed queries (default: 1) */\n retry?: number;\n /** Whether to refetch when window regains focus (default: false = manual refresh only) */\n refetchOnWindowFocus?: boolean;\n /** Whether to refetch on reconnect (default: false = manual refresh only) */\n refetchOnReconnect?: boolean;\n /** Mutation retry attempts (default: 1) */\n mutationRetry?: number;\n /** Mutation retry delay function (default: exponential backoff) */\n mutationRetryDelay?: (attemptIndex: number) => number;\n}","QueryOptions":"/**\n * Query options for collection queries.\n * Provider-agnostic — each adapter maps these to its native query API.\n *\n * Default `limit` is **1000** (server max: 1000). For collections > 1000 items,\n * use server-side pagination with `startAfter` cursor.\n *\n * @example\n * // Fetch all (up to 1000)\n * { where: [{ field: 'status', operator: '==', value: 'available' }] }\n *\n * @example\n * // Paginate server-side\n * { limit: 50, startAfter: lastCursorId }\n */\ninterface QueryOptions {\n where?: QueryWhereClause[];\n orderBy?: QueryOrderBy[];\n /** Max items to fetch. Default: 1000, max: 1000. Use server pagination for larger collections. */\n limit?: number;\n /** Opaque cursor for pagination — value of the first orderBy field from the previous page's lastVisible */\n startAfter?: string | null;\n}","QueryOrderBy":"/** Order-by clause for a query. direction accepts 'asc' | 'desc' or string so consumer code can use variables. */\ninterface QueryOrderBy {\n field: string;\n direction?: OrderDirection;\n}","QueryWhereClause":"/** Single where clause for a query. operator accepts CrudOperator or string so consumer code can use variables or literals ('in', '==', etc.) without importing CRUD_OPERATORS. */\ninterface QueryWhereClause {\n field: string;\n operator: CrudOperator;\n value: unknown;\n}","RateLimitBackend":"/**\n * Pluggable rate limit backend for DndevSecurity.\n * Implement to swap the default in-memory limiter with Firestore, Postgres, Redis, etc.\n *\n * @example\n * ```typescript\n * import { checkRateLimitWithFirestore } from '@donotdev/functions/shared';\n * const security = new DndevSecurity({\n * rateLimitBackend: { check: (key, cfg) => checkRateLimitWithFirestore(key, cfg) },\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitBackend {\n check(key: string, config: ServerRateLimitConfig): Promise<ServerRateLimitResult>;\n}","RateLimitConfig":"/**\n * Configuration options for rate limiting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitConfig {\n /** Maximum number of allowed attempts within the window */\n maxAttempts: number;\n /** Time window in milliseconds */\n windowMs: number;\n /** Duration to block after maxAttempts is reached (ms) */\n blockDurationMs: number;\n /**\n * Whether to increase block duration exponentially for repeated blocks\n * @default true\n */\n useExponentialBackoff?: boolean;\n /**\n * Key for storage - should be unique per application or feature\n * @default \"dndev_auth_ratelimit\"\n */\n storageKey: string;\n /**\n * Maximum block duration in milliseconds\n * @default 86400000 (24 hours)\n */\n maxBlockDurationMs?: number;\n}","RateLimitManager":"/**\n * Rate limit manager interface for application-wide use\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitManager {\n /**\n * Get a rate limiter for a specific operation\n * @param operation Operation to rate limit\n * @param config Optional configuration overrides\n */\n getLimiter(operation: string, config?: Partial<RateLimitConfig>): RateLimiter;\n /**\n * Reset all rate limiters\n */\n resetAll(): void;\n}","RateLimitResult":"/**\n * Result of a rate limit check\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitResult {\n /** Whether the operation is allowed */\n allowed: boolean;\n /** Number of attempts remaining before being rate limited */\n remaining: number;\n /** When the rate limit window or block will reset */\n resetAt: Date | null;\n /** Seconds remaining in block (null if not blocked) */\n blockRemainingSeconds: number | null;\n}","RateLimitState":"/**\n * Rate limiting state for a specific operation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitState {\n /** Number of attempts made in the current window */\n attempts: number;\n /** ISO date string when the current rate limit window started */\n windowStart: string;\n /** ISO date string when the block expires, or null if not blocked */\n blockUntil: string | null;\n}","RateLimiter":"/**\n * Rate limiter interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimiter {\n /**\n * Check if an operation is allowed and record an attempt\n * @param identifier Optional identifier (e.g. email, username)\n * @returns Rate limit result\n */\n consume(identifier?: string): RateLimitResult;\n /**\n * Check rate limit without recording an attempt\n * @param identifier Optional identifier\n * @returns Rate limit result\n */\n check(identifier?: string): RateLimitResult;\n /**\n * Reset rate limiting state\n */\n reset(): void;\n /**\n * Reset rate limiting for a specific identifier\n * @param identifier The identifier to reset\n */\n resetForIdentifier(identifier: string): void;\n}","ReadCallback":"/**\n * Custom read callback for i18next backend\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ReadCallback = (err: any, data: any) => void;","RedirectOperation":"/**\n * All redirect operations - Union of billing, auth, and OAuth operations\n * Extensible via string intersection for custom operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RedirectOperation = BillingRedirectOperation | AuthRedirectOperation | OAuthRedirectOperation | (string & {}","RedirectOverlayActions":"/**\n * Redirect overlay actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayActions {\n /** Show the redirect overlay */\n showRedirectOverlay: (operation: RedirectOperation, config?: RedirectOverlayConfig) => void;\n /** Hide the redirect overlay */\n hideRedirectOverlay: () => void;\n /** Update the current phase (internal use) */\n setRedirectPhase: (phase: RedirectOverlayPhase) => void;\n /** Show/hide cancel button (internal use) */\n setShowCancelButton: (show: boolean) => void;\n}","RedirectOverlayConfig":"/**\n * Configuration for redirect overlay (optional overrides)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayConfig {\n /** i18n namespace to use (default: inferred from operation) */\n namespace?: string;\n /** Custom title (overrides i18n) */\n title?: string;\n /** Custom message (overrides i18n) */\n message?: string;\n /** Custom subtitle (overrides i18n) */\n subtitle?: string;\n /** Icon type: 'lock' for payments, 'shield' for auth (default: inferred) */\n icon?: 'lock' | 'shield' | 'none';\n /** Timeout in ms before showing cancel button (default: 10000) */\n cancelTimeout?: number;\n}","RedirectOverlayPhase":"/**\n * Phase of the redirect overlay progression\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RedirectOverlayPhase = 'connecting' | 'preparing' | 'redirecting' | 'timeout';","RedirectOverlayState":"/**\n * Redirect overlay state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayState {\n /** Whether the redirect overlay is visible */\n isRedirectOverlayOpen: boolean;\n /** Current operation being performed */\n redirectOperation: RedirectOperation | null;\n /** Current phase of the redirect */\n redirectPhase: RedirectOverlayPhase;\n /** Whether cancel button should be shown */\n showCancelButton: boolean;\n /** Configuration overrides */\n redirectConfig: RedirectOverlayConfig | null;\n /** Timestamp when overlay was shown (for phase progression) */\n redirectStartTime: number | null;\n}","Reference":"/**\n * Represents a reference to another document.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Reference {\n /** The collection containing the referenced document */\n collection: string;\n /** The ID of the referenced document */\n document: string;\n /** The field in the referenced document */\n field: string;\n}","RefreshSubscriptionRequest":"/**\n * Refresh subscription request\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RefreshSubscriptionRequest {\n userId: string;\n}","RefreshSubscriptionResponse":"/**\n * Refresh subscription response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RefreshSubscriptionResponse {\n success: boolean;\n subscription: Subscription;\n}","RemoveCustomClaimsResponse":"/**\n * Remove custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RemoveCustomClaimsResponse {\n success: boolean;\n userId: string;\n removedClaims: string[];\n remainingClaims: Record<string, any>;\n}","ResolveLineItemsContext":"/**\n * Context passed to `resolveLineItems`.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolveLineItemsContext {\n userId: string;\n billingConfigKey: string;\n /** Request metadata (sanitized) */\n metadata: Record<string, string>;\n}","ResolvedLayoutConfig":"/**\n * Resolved layout configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedLayoutConfig {\n /** Current preset name */\n preset: LayoutPreset;\n /** Resolved app configuration */\n app: {\n name: string;\n metadata: Record<string, any>;\n };\n}","ResolvedLineItem":"/**\n * One line priced by the app's `resolveLineItems` hook.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedLineItem {\n /** App product ID, copied to the Stripe product metadata and returned in `onOrderPaid` */\n productId: string;\n /** Name shown on the Stripe checkout page and invoice */\n name: string;\n description?: string;\n /** Unit price excl. VAT, in the smallest currency unit (cents) */\n unitAmount: number;\n quantity: number;\n}","ResolvedOrder":"/**\n * Output of `resolveLineItems`: the server-side order and its priced lines.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedOrder {\n /** App order ID (created by the hook, e.g. a pending order row) */\n orderId: string;\n lineItems: ResolvedLineItem[];\n /** Per-order session options decided by the server (omit to use the back config). */\n session?: ResolvedOrderSession;\n}","ResolvedOrderSession":"/**\n * Checkout session options a StripeOrder decides per order in `resolveLineItems`\n * (they depend on the buyer or the order, not on the back config).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedOrderSession {\n /**\n * Manual tax only: Tax Rate IDs applied to every line of this order instead of\n * `tax.taxRateIds` (each must be exclusive). `[]` = no tax (e.g. EU B2B reverse charge).\n */\n taxRateIds?: string[];\n /** Payment methods offered for this order. Replaces `paymentMethodConfiguration`. */\n paymentMethodTypes?: Array<'card' | 'sepa_debit'>;\n /** Session expiry, Unix seconds. Stripe: 30 minutes to 24 hours after creation. */\n expiresAt?: number;\n /** Footer printed on the post-payment invoice (e.g. a legal mention). Needs `invoiceCreation`. */\n invoiceFooter?: string;\n}","RevokeGitHubAccessRequest":"/**\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RevokeGitHubAccessRequest = v.InferOutput<typeof revokeGitHubAccessSchema>;","RouteMeta":"/**\n * Route metadata (discovery-generated)\n * @description Complete route metadata including auto-discovered fields from RouteDiscovery\n *\n * This extends PageMeta with fields that are automatically discovered from file paths:\n * - `entity`: Auto-extracted from path (pages/showcase/ → \"showcase\")\n * - `action`: Auto-extracted from filename patterns (ListPage → \"list\", FormPage → \"form\")\n *\n * These fields are always present in discovered routes but cannot be set in PageMeta.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RouteMeta extends PageMeta {\n /** Entity/domain grouping - auto-discovered from file path (not user-configurable) */\n entity?: string;\n /** Action type for route categorization - auto-discovered from filename patterns (not user-configurable) */\n action?: string | null;\n /** File path where route was discovered */\n file?: string;\n}","RouteSource":"/**\n * Route source type derived from ROUTE_SOURCES constant\n */\ntype RouteSource = (typeof ROUTE_SOURCES)[keyof typeof ROUTE_SOURCES];","RoutesPluginConfig":"/**\n * Routes Plugin Configuration\n * @description Complete route configuration populated by discovery system\n */\ninterface RoutesPluginConfig {\n /**\n * Array of discovered routes\n * @description All routes discovered by the route discovery system\n */\n mapping: Array<{\n /**\n * URL path for the route (platform-agnostic)\n * @description The URL path that users see in their browser\n * @example '/showcase/layouts', '/users/:id', '/dashboard'\n */\n path: string;\n /**\n * Lazy component reference (Vite-specific)\n * @description React.lazy() component for code splitting\n * @example lazy(() => import(\"/src/pages/showcase/LayoutsPage\"))\n */\n component: any;\n /**\n * Absolute file system path (Next.js-specific)\n * @description The absolute path to the component file\n * @example '/src/pages/showcase/LayoutsPage.tsx'\n */\n importPath: string;\n /**\n * Export name for named exports\n * @example 'HomePage', 'AboutPage'\n */\n exportName?: string;\n /**\n * Authentication configuration (platform-agnostic)\n * @description Defines whether the route requires authentication\n */\n auth: PageAuth;\n /**\n * Route metadata (platform-agnostic)\n * @description Additional information about the route, including auto-discovered fields\n */\n meta: RouteMeta;\n }>;\n /**\n * Discovery metadata and statistics\n * @description Information about the route discovery process\n */\n manifest: {\n /** Total number of discovered routes */\n totalRoutes: number;\n /** Number of routes requiring authentication */\n authRequired: number;\n /** Number of public routes */\n publicRoutes: number;\n /** Source of routes (auto-discovery vs manual) */\n source: RouteSource;\n /** ISO timestamp when routes were generated */\n generatedAt: string;\n };\n}","SEOConfig":"/**\n * SEO configuration\n *\n * Configure automatic SEO meta tags and social sharing.\n *\n * @example\n * ```typescript\n * const seoConfig: SEOConfig = {\n * baseUrl: 'https://example.com',\n * defaultImage: '/og-image.png',\n * twitterHandle: 'mycompany'\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SEOConfig {\n /** Enable automatic SEO (default: true) */\n enabled?: boolean;\n /** Base URL for SEO files (robots.txt, sitemap.xml) - reads from VITE_APP_URL/NEXT_PUBLIC_APP_URL env var */\n baseUrl?: string;\n /** Site name for SEO - defaults to APP_NAME from app.ts */\n siteName?: string;\n /** Crawl delay for robots.txt (default: 1) */\n crawlDelay?: number;\n /** Generate robots.txt (default: true) */\n generateRobotsTxt?: boolean;\n /** Generate sitemap.xml (default: true) */\n generateSitemap?: boolean;\n /** Default namespace for i18n translations (default: 'home') */\n defaultNamespace?: string;\n /** Default image for social sharing */\n defaultImage?: string;\n /** Twitter handle (without @) */\n twitterHandle?: string;\n /** Additional static meta tags */\n staticTags?: Record<string, string>;\n /** URL redirect rules - generates platform-specific 301/302 redirects at build time */\n redirects?: Array<{\n /** Source path (supports :param syntax, e.g. '/old-blog/:slug') */\n from: string;\n /** Destination path (supports :param syntax, e.g. '/blog/:slug') */\n to: string;\n /** true = 301 permanent (default), false = 302 temporary */\n permanent?: boolean;\n }>;\n /**\n * AI crawler management in robots.txt (default: 'recommended')\n * - 'recommended': Block training bots (GPTBot, Google-Extended, CCBot, ClaudeBot),\n * allow search/retrieval bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, etc.)\n * - 'block-all': Block all AI bots\n * - 'allow-all': Allow all AI bots\n * - false: No AI crawler directives\n */\n aiCrawlers?: 'recommended' | 'block-all' | 'allow-all' | false;\n /** Generate llms.txt per llmstxt.org spec (default: true). Set to false to disable. */\n llmsTxt?: boolean;\n /** Inject Speculation Rules API for prefetch/prerender of internal links (default: true). Set to false to disable. */\n speculationRules?: boolean;\n /** Emit hreflang alternate links when i18n has 2+ languages (default: true). No-op for monolingual apps. Set to false to disable. */\n hreflang?: boolean;\n /** Auto-generate BreadcrumbList JSON-LD from URL path segments (default: true). Set to false to disable. */\n breadcrumbSchema?: boolean;\n /** Auto-generate WebSite JSON-LD with SearchAction for sitelinks search box (default: true). Set to false to disable. */\n websiteSchema?: boolean;\n /** Auto-generate Organization JSON-LD on homepage from app.links (default: true). Set to false to disable. */\n organizationSchema?: boolean;\n}","SchemaMetadata":"/**\n * Unified metadata structure for all schemas (CRUD, Functions, etc.)\n * Consolidates different metadata patterns into one DRY interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SchemaMetadata {\n /** Firestore collection name */\n collection: string;\n /** Entity name (for CRUD schemas) */\n entity?: string;\n /** Form configuration (for CRUD schemas) */\n form?: FormConfig;\n /** Fields that should be unique within the collection (for function validation) */\n uniqueFields?: Array<{\n field: string;\n errorMessage?: string;\n }>;\n /**\n * Unique key constraints from entity definition\n * Used by backend CRUD functions for deduplication\n */\n uniqueKeys?: UniqueKeyDefinition[];\n /** Custom validation function (for function validation) */\n customValidate?: (data: Record<string, any>, operation: 'create' | 'update') => Promise<void>;\n}","ScopeConfig":"/**\n * Multi-tenancy scope configuration for entities\n * Enables automatic scoping of data by tenant/company/workspace\n *\n * @example\n * ```typescript\n * const clientEntity = defineEntity({\n * name: 'Client',\n * collection: 'clients',\n * scope: { field: 'companyId', provider: 'company' },\n * fields: { ... } // No need to manually define companyId\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ninterface ScopeConfig {\n /**\n * Field name that stores the scope ID (e.g., 'companyId', 'tenantId', 'workspaceId')\n * This field will be auto-added to the entity with type 'reference'\n */\n field: string;\n /**\n * Name of the scope provider registered with registerScopeProvider()\n * The provider function returns the current scope ID from app state\n * @example 'company', 'tenant', 'workspace'\n */\n provider: string;\n /**\n * Collection being referenced (optional, defaults to field name without 'Id' suffix + 's')\n * @example 'companies' for field 'companyId'\n */\n collection?: string;\n}","SecurityContext":"/**\n * Security context interface consumed by CrudService and auth adapters.\n * Implemented by DndevSecurity in @donotdev/security/server.\n *\n * Pass an instance via CrudService.setSecurity() or auth adapter constructors.\n * When not provided, no audit logging, rate limiting, or encryption is applied.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SecurityContext {\n /** Emit a structured audit event */\n audit(event: Omit<AuditEvent, 'timestamp'>): void | Promise<void>;\n /**\n * Check rate limit for a key + operation.\n * @throws {Error} when threshold is exceeded\n */\n checkRateLimit(key: string, operation: 'read' | 'write'): Promise<void>;\n /** Encrypt named PII fields in a data object (returns new object) */\n encryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;\n /** Decrypt named PII fields in a data object (returns new object) */\n decryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;\n /**\n * Auth hardening — when present, auth adapters delegate brute-force lockout here\n * instead of using their own hardcoded Maps, ensuring injected config is respected.\n */\n authHardening?: AuthHardeningContext;\n /**\n * Record a behavioral anomaly event (e.g. bulk deletes, bulk reads, auth failures).\n * Optional — no-op when not implemented. CrudService calls this after write mutations\n * so the anomaly detector can fire alerts when thresholds are breached.\n *\n * @param type - Anomaly type string (must match AnomalyType in @donotdev/security)\n * @param userId - User who triggered the anomaly (undefined = system / anonymous)\n */\n recordAnomaly?(type: string, userId?: string): void;\n}","SecurityEntityConfig":"/**\n * SOC2 security configuration for an entity.\n * Zero-config path: omit this entirely for MVP — add it when going to production/SOC2 audit.\n *\n * When a `SecurityContext` is passed to `CrudService`, these options control:\n * - Which fields are encrypted at rest (PII)\n * - Whether CRUD mutations are audit-logged (default: true)\n * - Entity-level rate limit overrides\n * - MFA requirement for a given role tier\n * - Data retention for automated purge scheduling\n *\n * @example\n * ```typescript\n * security: {\n * piiFields: ['email', 'phone', 'ssn'],\n * requireMfa: 'admin',\n * retention: { days: 365 },\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SecurityEntityConfig {\n /**\n * Field names to encrypt at rest using AES-256-GCM.\n * Requires `piiSecret` in `DndevSecurityConfig`.\n * Only string field values are encrypted; other types are skipped silently.\n */\n piiFields?: string[];\n /**\n * Whether to emit audit log entries for all CRUD mutations on this entity.\n * @default true (when SecurityContext is provided)\n */\n auditLog?: boolean;\n /**\n * Override rate limits for this entity (uses global defaults if omitted).\n */\n rateLimit?: {\n writes?: number;\n reads?: number;\n windowSeconds?: number;\n };\n /**\n * Enforce MFA for users at or above this role attempting mutations.\n * The adapter must verify MFA status from the auth token/session.\n */\n requireMfa?: UserRole;\n /**\n * Data retention policy — documents older than `days` are flagged for purge.\n * Integrate with `PrivacyManager.shouldPurge()` in a scheduled function.\n */\n retention?: {\n days: number;\n };\n}","SendEmailRequest":"/** Request payload for sending an email. */\ntype SendEmailRequest = v.InferOutput<typeof SendEmailRequestSchema>;","SendEmailResponse":"/** Response payload after sending an email. */\ntype SendEmailResponse = v.InferOutput<typeof SendEmailResponseSchema>;","SeoMeta":"/**\n * SEO metadata for a page\n * @description Controls `<title>`, meta description, Open Graph, and Twitter Cards.\n * All fields default to i18n lookup when undefined.\n *\n * @example i18n-first (default)\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'pricing', // Uses pricing:title, pricing:description\n * };\n * ```\n *\n * @example Full title control (escape \"Page | App\" format)\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'home',\n * seo: { fullTitle: 'DoNotDev - Build Apps in Minutes' },\n * };\n * ```\n *\n * @example siteName only\n * ```tsx\n * export const meta: PageMeta = {\n * seo: { title: null }, // → \"AppName\"\n * };\n * ```\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface SeoMeta {\n /**\n * Page title segment (appears as \"title | siteName\")\n * @description\n * - `undefined` → i18n lookup (`ns:title`)\n * - `string` → literal value + siteName suffix\n * - `null` → siteName only (no page title)\n */\n title?: string | null;\n /**\n * Full title override (no suffix appended)\n * @description Escapes the \"Page | App\" format entirely.\n * Takes priority over `title` when set.\n */\n fullTitle?: string;\n /**\n * Meta description\n * @description\n * - `undefined` → i18n lookup (`ns:description`)\n * - `string` → literal value\n * - `null` → omit meta description\n */\n description?: string | null;\n /** Open Graph image URL (relative or absolute) */\n image?: string;\n /** Keywords for meta tag */\n keywords?: string[];\n /** Page type for Open Graph */\n type?: 'website' | 'article' | 'product';\n /** Exclude from search engine indexing */\n noindex?: boolean;\n}","ServerRateLimitConfig":"/**\n * Persistence-backed rate limit config (server-side: maxAttempts / windowMs / blockDurationMs).\n * Used by RateLimitBackend implementations (Firestore, Postgres, Redis).\n * Distinct from the client-side RateLimitConfig in @donotdev/types/utils.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ServerRateLimitConfig {\n /** Max requests allowed within the window. */\n maxAttempts: number;\n /** Window duration in milliseconds. */\n windowMs: number;\n /** Block duration in milliseconds after limit is exceeded. */\n blockDurationMs: number;\n}","ServerRateLimitResult":"/**\n * Result from a server-side rate limit check.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ServerRateLimitResult {\n allowed: boolean;\n remaining: number;\n resetAt: Date | null;\n blockRemainingSeconds: number | null;\n}","ServerUserRecord":"/** Server-side user record (minimal) */\ninterface ServerUserRecord {\n uid: string;\n email?: string;\n displayName?: string;\n customClaims?: Record<string, unknown>;\n}","SetCustomClaimsResponse":"/**\n * Set custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SetCustomClaimsResponse {\n success: boolean;\n userId: string;\n claims: Record<string, any>;\n}","SidebarZoneConfig":"/**\n * Sidebar zone configuration\n *\n * Vertical layout with top/content/bottom areas.\n * All sidebars use ResizableSidebar wrapper.\n */\ninterface SidebarZoneConfig {\n /** Top slot - branding, search */\n top?: SlotContent;\n /** Content slot - main scrollable area (defaults to NavigationMenu) */\n content?: SlotContent;\n /** Bottom slot - user profile, settings */\n bottom?: SlotContent;\n /** Default sidebar width in pixels */\n defaultWidth?: number;\n /** Minimum width when resizing */\n minWidth?: number;\n /** Maximum width when resizing */\n maxWidth?: number;\n}","SignUpMetadata":"/**\n * Optional metadata passed to signup methods.\n * Stored in provider-specific user metadata (Supabase `raw_user_meta_data`, Firebase user doc).\n */\ninterface SignUpMetadata {\n /** ISO-8601 timestamp of GDPR consent acceptance */\n gdpr_consent_at?: string;\n /** Version identifier of the ToS document accepted */\n gdpr_tos_version?: string;\n /** Extensible for consumer-specific fields */\n [key: string]: unknown;\n}","SlotContent":"/**\n * Slot content function - returns ReactNode or null\n *\n * Presets use functions that return ReactNode, same API as consumers.\n * Return null to explicitly hide the slot.\n */\ntype SlotContent = () => ReactNode | null;","StorageOptions":"/**\n * Storage options for get/set operations\n */\ninterface StorageOptions {\n /**\n * Whether to encrypt the data\n * @default false for most data, true for sensitive data\n */\n encryption?: boolean;\n /**\n * Time in seconds after which the data expires\n * @description Set to 0 for no expiration\n * @default 0\n */\n expiry?: number;\n /**\n * Storage scope for data isolation\n * @description\n * - 'user': User-specific data, tied to user ID (requires auth)\n * - 'global': Application-wide data, not tied to specific user\n * - 'session': Session-only data, cleared on logout/browser close\n * @default 'user'\n */\n scope?: StorageScope;\n}","StorageScope":"/**\n * Storage scope type derived from STORAGE_SCOPES constant\n */\ntype StorageScope = (typeof STORAGE_SCOPES)[keyof typeof STORAGE_SCOPES];","StorageType":"/**\n * Storage type derived from STORAGE_TYPES constant\n */\ntype StorageType = (typeof STORAGE_TYPES)[keyof typeof STORAGE_TYPES];","Store":"/**\n * Combined store type including state and actions.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Store<T> = BaseState<T> & BaseActions<T>;","StripeBackConfig":"/**\n * Backend billing configuration type with hooks\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeBackConfig = Record<string, StripePaymentBackItem | StripeSubscriptionBackItem | StripeOrderBackItem>;","StripeCheckoutProvider":"/**\n * 0.1.x provider interface for Stripe checkout operations. Supports\n * StripePayment/StripeSubscription items only; StripeOrder needs the full-session\n * provider of @donotdev/functions (StripeSessionProvider).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutProvider {\n createCheckoutSession(params: CheckoutSessionParams): Promise<CheckoutSessionResult>;\n}","StripeCheckoutRequest":"/**\n * Stripe checkout session creation request\n *\n * 0.1.x request shape, still accepted. New code sends\n * `CreateCheckoutSessionRequestInput` (`billingConfigKey`, plus `lineItems` for StripeOrder).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutRequest {\n /** Stripe price ID (fixed pricing mode) */\n priceId?: string;\n /** Amount in cents (dynamic pricing mode, used with price_data) */\n unitAmount?: number;\n /** Product name for Stripe checkout (dynamic pricing mode) */\n productName?: string;\n /** Currency code, defaults to 'eur' (dynamic pricing mode) */\n currency?: string;\n /** User email for the subscription */\n userEmail: string;\n /** URL to redirect to on successful payment */\n successUrl: string;\n /** URL to redirect to on cancelled payment */\n cancelUrl: string;\n /** Optional metadata to attach to the session */\n metadata?: Record<string, string>;\n /** Customer email address */\n customerEmail?: string;\n /** Whether to allow promotion codes */\n allowPromotionCodes?: boolean;\n /** Trial period in days */\n trialPeriodDays?: number;\n /** Collection method for the subscription */\n collectionMethod?: 'charge_automatically' | 'send_invoice';\n /** Payment method types to allow */\n paymentMethodTypes?: string[];\n /** Billing address collection requirement */\n billingAddressCollection?: 'auto' | 'required';\n /** Tax ID collection requirement */\n taxIdCollection?: {\n enabled: boolean;\n };\n /** Checkout mode - payment or subscription */\n mode?: CheckoutMode;\n}","StripeCheckoutResponse":"/**\n * Stripe checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutResponse {\n /** Stripe session ID */\n sessionId: string;\n /** URL to redirect the user to complete payment */\n sessionUrl: string | null;\n /** Whether the session was created successfully */\n success: boolean;\n /** Error message if creation failed */\n error?: string;\n}","StripeCheckoutSessionEventData":"/**\n * Stripe checkout session event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutSessionEventData {\n sessionId: string;\n customerId?: string;\n paymentIntentId?: string;\n amount?: number;\n currency?: string;\n customerEmail?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeConfig":"/**\n * Stripe configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeConfig {\n /** Stripe secret key for server-side operations */\n secretKey: string;\n /** Stripe publishable key for client-side operations */\n publishableKey: string;\n /** Stripe webhook secret for webhook verification */\n webhookSecret: string;\n /** Whether to use test mode */\n testMode: boolean;\n /** API version to use */\n apiVersion?: string;\n /** Maximum number of retries for failed requests */\n maxNetworkRetries?: number;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Additional configuration options */\n options?: {\n /** Whether to enable telemetry */\n telemetry?: boolean;\n /** App information */\n appInfo?: {\n name: string;\n version: string;\n url?: string;\n };\n };\n}","StripeCustomer":"/**\n * Stripe customer data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCustomer {\n /** Stripe customer ID */\n id: string;\n /** Customer email */\n email?: string;\n /** Customer name */\n name?: string;\n /** Customer description */\n description?: string;\n /** Customer phone */\n phone?: string;\n /** Customer address */\n address?: {\n city?: string;\n country?: string;\n line1?: string;\n line2?: string;\n postal_code?: string;\n state?: string;\n };\n /** Customer balance */\n balance: number;\n /** Currency code */\n currency?: string;\n /** When the customer was created */\n created: number;\n /** When the customer was last updated */\n updated: number;\n /** Customer metadata */\n metadata: Record<string, string>;\n /** Default payment method */\n default_source?: string;\n /** Whether the customer is deleted */\n deleted?: boolean;\n /** Customer tax IDs */\n tax_ids?: {\n data: Array<{\n id: string;\n type: 'eu_vat' | 'br_cnpj' | 'br_cpf' | 'gb_vat' | 'nz_gst' | 'au_abn' | 'au_arn' | 'in_gst' | 'no_vat' | 'za_vat' | 'ch_vat' | 'mx_rfc' | 'sg_uen' | 'ru_inn' | 'ru_kpp' | 'ca_bn' | 'hk_br' | 'es_cif' | 'tw_vat' | 'th_vat' | 'jp_cn' | 'jp_rn' | 'li_uid' | 'my_itn' | 'us_ein' | 'kr_brn' | 'ca_gst_hst' | 'ca_qst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'my_sst' | 'sg_gst' | 'ae_trn' | 'cl_tin' | 'sa_vat' | 'id_npwp';\n value: string;\n }>;\n };\n}","StripeCustomerEventData":"/**\n * Stripe customer event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCustomerEventData {\n customerId: string;\n email?: string;\n name?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeEventData":"/**\n * Stripe event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeEventData {\n eventId?: string;\n eventType?: string;\n customerId?: string;\n subscriptionId?: string;\n amount?: number;\n currency?: string;\n status?: string;\n metadata?: Record<string, any>;\n timestamp: string;\n}","StripeEventKey":"/**\n * Type for Stripe event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeEventKey = keyof typeof STRIPE_EVENTS;","StripeEventName":"/**\n * Type for Stripe event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeEventName = (typeof STRIPE_EVENTS)[StripeEventKey];","StripeFrontConfig":"/**\n * Frontend billing configuration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeFrontConfig = v.InferOutput<typeof StripeFrontConfigSchema>;","StripeInvoice":"/**\n * Stripe invoice data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeInvoice {\n /** Stripe invoice ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Invoice amount */\n amount_due: number;\n /** Invoice amount paid */\n amount_paid: number;\n /** Invoice amount remaining */\n amount_remaining: number;\n /** Currency code */\n currency: string;\n /** Invoice status */\n status: 'draft' | 'open' | 'paid' | 'void' | 'uncollectible';\n /** When the invoice was created */\n created: number;\n /** When the invoice is due */\n due_date?: number;\n /** When the invoice was paid */\n paid_at?: number;\n /** When the invoice was voided */\n voided_at?: number;\n /** Invoice description */\n description?: string;\n /** Invoice line items */\n lines: {\n data: Array<{\n id: string;\n amount: number;\n currency: string;\n description?: string;\n quantity: number;\n unit_amount: number;\n price?: {\n id: string;\n unit_amount: number;\n currency: string;\n recurring?: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n };\n product: string;\n };\n }>;\n };\n /** Invoice metadata */\n metadata: Record<string, string>;\n /** Subscription ID (if applicable) */\n subscription?: string;\n /** Total amount */\n total: number;\n /** Tax amount */\n tax?: number;\n /** Tax rate applied */\n tax_rate?: number;\n}","StripeInvoiceEventData":"/**\n * Stripe invoice event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeInvoiceEventData {\n invoiceId: string;\n customerId: string;\n amount: number;\n currency: string;\n status: string;\n hostedInvoiceUrl?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeOrderBackItem":"/**\n * Multi-line, one-time order priced on the server.\n * Order hooks are delivered at least once and must be idempotent on\n * `ctx.orderId` / `ctx.eventId`: a hook re-runs when it threw (the webhook\n * answers non-2xx and Stripe retries) and also after it succeeded when the\n * framework could not record the event as processed. A store write cannot be\n * atomic with an arbitrary hook, so exactly-once is not possible.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripeOrderBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripeOrder';\n}","StripePayment":"/**\n * Stripe payment type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripePayment = v.InferOutput<typeof StripePaymentSchema> & {\n onPurchaseSuccess?: (userId: string, metadata: any) => Promise<void>;\n onPurchaseFailure?: (userId: string, metadata: any) => Promise<void>;\n}","StripePaymentBackItem":"/**\n * One-time payment item (single Stripe price) granting a tier.\n * The tier is granted once the payment is settled: at checkout completion when\n * `payment_status` is `paid` / `no_payment_required`, else on\n * `checkout.session.async_payment_succeeded` (e.g. SEPA debit).\n * Hooks run at least once per Stripe event and may run again for the same\n * purchase: make them idempotent. Their errors are logged, not retried.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripePaymentBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripePayment';\n}","StripePaymentIntentEventData":"/**\n * Stripe payment intent event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePaymentIntentEventData {\n paymentIntentId: string;\n customerId?: string;\n amount: number;\n currency: string;\n status: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripePaymentMethod":"/**\n * Stripe payment method data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePaymentMethod {\n /** Stripe payment method ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Payment method type */\n type: 'card' | 'bank_account' | 'us_bank_account' | 'sepa_debit' | 'ideal' | 'sofort' | 'bancontact' | 'p24' | 'giropay' | 'eps' | 'alipay' | 'wechat_pay';\n /** Card details (if type is 'card') */\n card?: {\n brand: 'amex' | 'diners' | 'discover' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';\n country: string;\n exp_month: number;\n exp_year: number;\n fingerprint: string;\n funding: 'credit' | 'debit' | 'prepaid' | 'unknown';\n last4: string;\n three_d_secure_usage?: {\n supported: boolean;\n };\n wallet?: {\n type: 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'masterpass' | 'samsung_pay' | 'visa_checkout';\n dynamic_last4?: string;\n };\n };\n /** Bank account details (if type is 'bank_account') */\n bank_account?: {\n account_holder_type: 'individual' | 'company';\n bank_name: string;\n country: string;\n currency: string;\n fingerprint: string;\n last4: string;\n routing_number: string;\n status: 'new' | 'validated' | 'verified' | 'verification_failed' | 'errored';\n };\n /** Billing details */\n billing_details: {\n address?: {\n city?: string;\n country?: string;\n line1?: string;\n line2?: string;\n postal_code?: string;\n state?: string;\n };\n email?: string;\n name?: string;\n phone?: string;\n };\n /** When the payment method was created */\n created: number;\n /** Whether this is the default payment method */\n is_default?: boolean;\n /** Payment method metadata */\n metadata: Record<string, string>;\n}","StripePrice":"/**\n * Stripe price data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePrice {\n /** Stripe price ID */\n id: string;\n /** Product ID */\n product: string;\n /** Price amount in cents */\n unit_amount: number;\n /** Currency code */\n currency: string;\n /** Price type */\n type: 'one_time' | 'recurring';\n /** Recurring interval (if type is 'recurring') */\n recurring?: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n trial_period_days?: number;\n usage_type: 'licensed' | 'metered';\n };\n /** Whether the price is active */\n active: boolean;\n /** When the price was created */\n created: number;\n /** When the price was last updated */\n updated: number;\n /** Price metadata */\n metadata: Record<string, string>;\n /** Price nickname */\n nickname?: string;\n /** Price tiers (for graduated pricing) */\n tiers?: Array<{\n up_to: number | 'inf';\n unit_amount: number;\n flat_amount?: number;\n }>;\n /** Price tiers mode */\n tiers_mode?: 'graduated' | 'volume';\n /** Price transform quantity */\n transform_quantity?: {\n divide_by: number;\n round: 'up' | 'down';\n };\n /** Price lookup key */\n lookup_key?: string;\n}","StripeProduct":"/**\n * Stripe product data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeProduct {\n /** Stripe product ID */\n id: string;\n /** Product name */\n name: string;\n /** Product description */\n description?: string;\n /** Product images */\n images: string[];\n /** Product metadata */\n metadata: Record<string, string>;\n /** Whether the product is active */\n active: boolean;\n /** When the product was created */\n created: number;\n /** When the product was last updated */\n updated: number;\n /** Product type */\n type: 'service' | 'good';\n /** Product URL */\n url?: string;\n /** Product statement descriptor */\n statement_descriptor?: string;\n /** Product unit label */\n unit_label?: string;\n /** Product tax code */\n tax_code?: string;\n}","StripeProvider":"/**\n * Stripe provider interface for billing operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeProvider {\n createCheckoutSession(params: {\n priceId?: string;\n /** Amount in cents (dynamic pricing mode, used with price_data) */\n unitAmount?: number;\n /** Product name for Stripe checkout (dynamic pricing mode) */\n productName?: string;\n /** Currency code, defaults to 'eur' */\n currency?: string;\n userId: string;\n successUrl: string;\n cancelUrl: string;\n metadata?: Record<string, string>;\n customerEmail?: string;\n allowPromotionCodes?: boolean;\n }): Promise<CreateCheckoutSessionResponse>;\n getSubscription(userId: string): Promise<Subscription | null>;\n cancelSubscription(subscriptionId: string): Promise<boolean>;\n updateSubscription(subscriptionId: string, updates: Partial<Subscription>): Promise<Subscription>;\n}","StripeSubscription":"/**\n * Stripe subscription type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeSubscription = v.InferOutput<typeof StripeSubscriptionSchema> & {\n onSubscriptionCreated?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionRenewed?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCancelled?: (userId: string, metadata: any) => Promise<void>;\n onPaymentFailed?: (userId: string, metadata: any) => Promise<void>;\n}","StripeSubscriptionBackItem":"/**\n * Recurring subscription item (single Stripe price) granting a tier.\n * Granted once the first payment is settled (same rule as StripePayment).\n * Hooks run at least once per Stripe event and may run again for the same\n * event: make them idempotent. Their errors are logged, not retried.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripeSubscriptionBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripeSubscription';\n}","StripeSubscriptionData":"/**\n * Stripe subscription data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeSubscriptionData {\n /** Stripe subscription ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Subscription status */\n status: 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid';\n /** Current period start timestamp */\n current_period_start: number;\n /** Current period end timestamp */\n current_period_end: number;\n /** Whether the subscription will cancel at period end */\n cancel_at_period_end: boolean;\n /** When the subscription was canceled */\n canceled_at?: number;\n /** Trial start timestamp */\n trial_start?: number;\n /** Trial end timestamp */\n trial_end?: number;\n /** When the subscription was created */\n created: number;\n /** When the subscription was last updated */\n updated: number;\n /** Subscription items */\n items: {\n data: Array<{\n id: string;\n price: {\n id: string;\n unit_amount: number;\n currency: string;\n recurring: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n };\n product: string;\n };\n quantity: number;\n }>;\n };\n /** Default payment method */\n default_payment_method?: string;\n /** Collection method */\n collection_method: 'charge_automatically' | 'send_invoice';\n /** Days until due for invoices */\n days_until_due?: number;\n /** Subscription metadata */\n metadata: Record<string, string>;\n}","StripeWebhookEvent":"/**\n * Stripe webhook event data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeWebhookEvent {\n id: string;\n type: string;\n data: {\n /** Raw Stripe object payload — shape depends on event type */\n object: Record<string, unknown>;\n };\n created: number;\n livemode: boolean;\n pending_webhooks: number;\n request?: {\n id: string;\n idempotency_key?: string;\n };\n}","StripeWebhookEventData":"/**\n * Stripe webhook event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeWebhookEventData {\n eventId: string;\n eventType: string;\n data: any;\n livemode: boolean;\n timestamp: string;\n}","Subscription":"/**\n * Subscription interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Subscription {\n id: string;\n userId: string;\n status: 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'trialing' | 'unpaid';\n currentPeriodStart: string;\n currentPeriodEnd: string;\n cancelAtPeriodEnd: boolean;\n canceledAt?: string;\n trialStart?: string;\n trialEnd?: string;\n createdAt: string;\n updatedAt: string;\n}","SubscriptionClaims":"/**\n * Subscription claims stored in Firebase Auth custom claims\n * Type definition - schema in schemas.ts validates against this structure\n */\ntype SubscriptionClaims = {\n tier: string;\n subscriptionId: string | null;\n customerId: string;\n status: SubscriptionStatus;\n subscriptionEnd: string | null;\n cancelAtPeriodEnd: boolean;\n updatedAt: string;\n isDefault?: boolean;\n}","SubscriptionConfig":"/**\n * Generic subscription configuration interface\n * Apps define their specific subscription tiers and features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionConfig {\n /** Subscription tiers with their features and hierarchy */\n tiers: Record<string, {\n /** Features available for this tier */\n features: string[];\n /** Tier level for comparison (higher = more access) */\n level: number;\n }>;\n}","SubscriptionData":"/**\n * Subscription data type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionData = v.InferOutput<typeof SubscriptionDataSchema>;","SubscriptionDuration":"/**\n * Type for subscription duration names\n * Apps can extend this with their own custom durations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionDuration = (typeof SUBSCRIPTION_DURATIONS)[keyof typeof SUBSCRIPTION_DURATIONS] | string;","SubscriptionEventData":"/**\n * Subscription event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionEventData {\n subscription: Record<string, unknown>;\n previousSubscription?: Record<string, unknown>;\n reason?: string;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","SubscriptionHookResult":"/**\n * Result type for the useSubscription hook\n * NOTE: subscription is now always present\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionHookResult {\n subscription: SubscriptionInfo;\n refreshSubscription: () => Promise<void>;\n hasFeature: (featureId: string) => boolean;\n hasTier: (requiredTier: string) => boolean;\n}","SubscriptionInfo":"/**\n * Extends SubscriptionClaims with calculated or derived subscription status information.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionInfo extends SubscriptionClaims {\n /** Indicates if the subscription is currently active (typically based on subscriptionEnd) */\n isActive: boolean;\n /** Number of days remaining in the subscription, or null if not applicable */\n daysRemaining: number | null;\n /** Array of feature IDs available to the user based on their subscription */\n features: string[];\n}","SubscriptionStatus":"/**\n * Type for subscription status names\n * Apps can extend this with their own custom statuses\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionStatus = (typeof SUBSCRIPTION_STATUS)[keyof typeof SUBSCRIPTION_STATUS] | string;","SubscriptionTier":"/**\n * Type for subscription tier names\n * Apps can extend this with their own custom tiers\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionTier = (typeof SUBSCRIPTION_TIERS)[keyof typeof SUBSCRIPTION_TIERS] | string;","SubscriptionUpdate":"/**\n * Subscription fields written to a user by the webhook and subscription helpers\n * (the stored record, {@link SubscriptionData}, adds userId and updatedAt).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionUpdate {\n tier: string;\n status: 'active' | 'canceled' | 'past_due' | 'trialing' | 'incomplete';\n subscriptionEnd: string | null;\n cancelAtPeriodEnd?: boolean;\n subscriptionId?: string | null;\n customerId?: string;\n}","SupportedLanguage":"/**\n * Supported language codes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SupportedLanguage = string;","ThemeActions":"/**\n * Enhanced theme actions for the store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeActions {\n /** Set the current theme with DOM application and persistence */\n setTheme: (theme: string) => Promise<void>;\n /** Update the list of available themes */\n setAvailableThemes: (themes: ThemeInfo[]) => void;\n /** Set dark mode state */\n setDarkMode: (isDark: boolean) => void;\n /** Set theme mode preference */\n setThemeMode: (mode: ThemeMode) => void;\n /** Set loading state */\n setLoading: (isLoading: boolean) => void;\n /** Set error state */\n setError: (error: string | null) => void;\n /** Clear error */\n clearError: () => void;\n /** Check if a theme is available */\n isThemeAvailable: (themeName: string) => boolean;\n /** Reset theme settings to defaults */\n resetTheme: () => void;\n /** Get theme info for the current theme */\n getCurrentThemeInfo: () => ThemeInfo | null;\n /** Switch to the next available theme */\n switchToNextTheme: () => void;\n /** Toggle between light and dark theme variants */\n toggleDarkMode: () => void;\n /**\n * Initialize theme system with discovery data and user config\n * @param appConfig - Full AppConfig from AppConfigProvider (store extracts what it needs)\n */\n initialize: (appConfig?: AppConfig) => Promise<boolean>;\n}","ThemeInfo":"/**\n * Theme information structure with enhanced metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeInfo {\n /** Unique theme identifier */\n name: string;\n /** User-friendly display name */\n displayName: string;\n /** Theme description */\n description?: string;\n /** Whether this is a dark theme */\n isDark: boolean;\n /** CSS variables for this theme */\n variables?: Record<string, string>;\n /** Enhanced theme metadata */\n meta: {\n /** Icon identifier for UI (e.g., 'SunIcon', 'MoonIcon') */\n icon: string;\n /** Optional theme description for UI */\n description?: string;\n /** Optional category for grouping themes */\n category?: string;\n /** Optional author information */\n author?: string;\n /** Additional metadata */\n [key: string]: any;\n };\n}","ThemeMode":"/**\n * Theme mode setting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ThemeMode = 'light' | 'dark' | 'auto';","ThemeState":"/**\n * Theme state in the store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeState {\n /** Currently active theme */\n currentTheme: string;\n /** List of available themes */\n availableThemes: ThemeInfo[];\n /** Whether dark mode is currently active */\n isDarkMode: boolean;\n /** User's theme mode preference */\n themeMode: ThemeMode;\n /** Loading state for theme operations */\n isLoading: boolean;\n /** Error state for theme operations */\n error: string | null;\n}","ThemesPluginConfig":"/**\n * Themes Plugin Configuration\n * @description Configuration for theme discovery and management\n */\ninterface ThemesPluginConfig {\n /** Mapping of theme names to theme configurations */\n mapping: Record<string, any>;\n /** Array of discovered themes */\n discovered: Array<{\n /** Theme identifier */\n name: string;\n /** Human-readable theme name */\n displayName: string;\n /** Whether this is a dark theme */\n isDark: boolean;\n /** Theme metadata */\n meta: {\n /** Icon identifier */\n icon: string;\n /** Theme description */\n description?: string;\n /** Theme category */\n category?: string;\n /** Theme author */\n author?: string;\n /** Additional metadata */\n [key: string]: any;\n };\n /** Source file path */\n source: string;\n /** Whether theme is essential (cannot be disabled) */\n essential: boolean;\n }>;\n /** CSS custom property variables */\n variables: Record<string, string>;\n /** Utility class mappings */\n utilities: Record<string, Record<string, string>>;\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of discovered themes */\n totalThemes: number;\n /** Total number of CSS variables */\n totalVariables: number;\n /** Total number of utility classes */\n totalUtilities: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","TierAccessHookResult":"/**\n * Result type for the useTierAccess hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TierAccessHookResult {\n enabled: boolean;\n}","Timestamp":"/**\n * Generic timestamp format for dates and times\n * @description ISO 8601 string format (e.g., \"2025-01-15T10:30:00.000Z\")\n */\ntype Timestamp = string;","TokenInfo":"/**\n * Information about a token including its status and expiration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenInfo {\n /** The actual token string or null if not available */\n token: string | null;\n /** Current status of the token */\n status: TokenStatus;\n /** When the token expires, or null if not available */\n expiresAt: Date | null;\n /** When the token was last refreshed */\n lastRefreshed?: Date;\n /** Number of seconds until expiration */\n expiresIn?: number;\n}","TokenResponse":"/**\n * Token response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenResponse {\n access_token: string;\n token_type?: string;\n expires_in?: number;\n refresh_token?: string;\n scope?: string;\n id_token?: string;\n created_at?: number;\n}","TokenState":"/**\n * Authentication token state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenState {\n /** The authentication token string or null if not authenticated */\n token: string | null;\n /** ISO date string of when the token expires */\n expiresAt: string | null;\n /** Current status of the token */\n status: TokenStatus;\n}","TokenStatus":"/**\n * Token status possible values\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype TokenStatus = 'valid' | 'expiring-soon' | 'expired' | 'error' | 'not-initialized';","TranslationOptions":"/**\n * Translation options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TranslationOptions {\n /** Language code (e.g., 'en', 'fr') */\n lng: string;\n /** Optional namespace array */\n ns?: string[];\n /** Fallback language code */\n fallbackLng?: string;\n}","TranslationResource":"/**\n * Interface representing the structure of a translations resource\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TranslationResource {\n /** Language code (e.g., 'en', 'fr') */\n [language: string]: {\n /** Namespace (e.g., 'common', 'auth') */\n [namespace: string]: Record<string, any>;\n };\n}","UIFieldOptions":"/**\n * Additional UI-specific options for field rendering\n * @template T - The field type (built-in or custom string). Custom types use CustomFieldOptionsMap for fieldSpecific.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UIFieldOptions<T extends string = FieldType> {\n /** The section under which this field should be grouped */\n section?: string;\n /** Placeholder text */\n placeholder?: string;\n /** Whether to show a clear button */\n clearable?: boolean;\n /** Additional classes to apply to the field */\n className?: string;\n /** Icon to show before the field */\n prefixIcon?: ComponentType;\n /** Icon to show after the field */\n suffixIcon?: ComponentType;\n /** Custom validation message overrides */\n messages?: {\n required?: string;\n pattern?: string;\n min?: string;\n max?: string;\n minLength?: string;\n maxLength?: string;\n };\n /** Step value for numeric inputs */\n step?: T extends 'number' | 'range' ? number : never;\n /**\n * i18n key for display formatting. Replaces the raw value in lists/cards/display views.\n * The formatter calls `t(displayKey, { value })`. Supports i18next array-key fallback.\n * Use `{{value}}` in key names for dynamic lookup (interpolated before `t()` call).\n *\n * @example Single key: `displayKey: 'fields.size_display'` → locale `\"{{value}}m²\"` → \"20m²\"\n * @example Array fallback: `displayKey: ['floor_{{value}}', 'fields.floor_display']`\n * → tries `floor_4`, falls back to `fields.floor_display`: `\"{{value}}th floor\"` → \"4th floor\"\n */\n displayKey?: string | string[];\n /**\n * Custom display value resolver. Overrides type formatter and displayKey for display views.\n * Receives the field value, the full item, and the translation function —\n * useful for cross-field conditional display with i18n.\n * Return `null` to hide the field for that item. Return a string to display it.\n *\n * @example\n * ```typescript\n * // Hide date for reserved/signed, show \"Available\" for past dates\n * displayValue: (value, item, t) => {\n * if (item.status === 'reserved' || item.status === 'signed') return null;\n * return value <= today ? t('status.available_now') : String(value);\n * }\n * ```\n */\n displayValue?: (value: unknown, item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;\n /** Whether to show value label for range inputs */\n showValue?: T extends 'range' ? boolean : never;\n /** Field specific options based on field type. Custom types: augment CustomFieldOptionsMap. */\n fieldSpecific?: T extends keyof CustomFieldOptionsMap ? CustomFieldOptionsMap[T] : T extends 'file' | 'image' | 'files' | 'images' | 'document' | 'documents' ? {\n /** File types to accept (e.g., 'image/*', '.pdf') */\n accept?: string;\n /** Maximum file size in bytes */\n maxSize?: number;\n /** Whether to allow multiple files */\n multiple?: boolean;\n /** Storage path prefix for uploads (e.g., 'apartments') */\n storagePath?: string;\n } : T extends 'geopoint' ? {\n /** Default zoom level for map */\n defaultZoom?: number;\n /** Default center position for map */\n defaultCenter?: {\n lat: number;\n lng: number;\n };\n } : T extends 'map' ? {\n /** Label for the key input */\n keyLabel?: string;\n /** Label for the value input */\n valueLabel?: string;\n /** Label for the add button */\n addLabel?: string;\n } : T extends 'reference' ? {\n /** Field to display from the referenced entity */\n displayField?: string;\n /** Multiple fields to join as label (e.g. ['first_name', 'last_name'] → \"John Doe\") */\n labelFields?: string[];\n /** Fields to search in the referenced entity */\n searchFields?: string[];\n /** Maximum number of items to preload */\n preloadLimit?: number;\n } : T extends 'tel' ? {\n /** Default country code */\n defaultCountry?: string;\n /** Whether to show country flags */\n showFlags?: boolean;\n /** Preferred country codes to show at the top of the list (e.g., ['FR', 'US', 'GB']) */\n preferredCountries?: string[];\n /** Custom list of country codes to show (if provided, only these countries are shown) */\n countries?: string[];\n } : T extends 'address' ? {\n /**\n * Whether to enable Google Maps autocomplete (default: false)\n * Requires env var: VITE_GOOGLE_MAPS_API_KEY (Vite) or NEXT_PUBLIC_GOOGLE_MAPS_API_KEY (Next.js)\n */\n enableGoogleMaps?: boolean;\n /** Whether to extract district code for Paris addresses */\n extractDistrictCode?: boolean;\n } : T extends 'combobox' ? {\n /** Enable creating new values by typing */\n creatable?: boolean;\n } : T extends 'switch' ? {\n /** Label shown when switch is off/unchecked */\n uncheckedLabel?: string;\n /** Label shown when switch is on/checked */\n checkedLabel?: string;\n /** Value stored when switch is off (default: false) */\n uncheckedValue?: string | boolean;\n /** Value stored when switch is on (default: true) */\n checkedValue?: string | boolean;\n } : T extends 'gdprConsent' ? {\n /** Path to privacy policy page (default: '/legal/privacy') */\n privacyPolicyPath?: string;\n /** Path to terms of use page (default: '/legal/terms') */\n termsPath?: string;\n } : Record<string, unknown>;\n}","UniqueConstraintValidator":"/**\n * Interface for database uniqueness validation\n * This abstraction allows for plugging in any database implementation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UniqueConstraintValidator {\n /**\n * Checks if a value would cause a duplicate in a given collection\n * @param collection - The collection/table name\n * @param field - The field name to check\n * @param value - The field value to check for uniqueness\n * @param currentDocId - The current document ID (for updates)\n * @returns Whether a duplicate exists\n */\n checkDuplicate: (collection: string, field: string, value: any, currentDocId?: string) => Promise<boolean>;\n}","UniqueKeyDefinition":"/**\n * Unique key constraint definition for entity deduplication\n * Enables automatic checking for duplicates on create/update operations\n *\n * @example\n * ```typescript\n * // Single field unique key with findOrCreate\n * uniqueKeys: [{ fields: ['email'], findOrCreate: true }]\n *\n * // Composite unique key\n * uniqueKeys: [{ fields: ['vin', 'make'], skipForDrafts: true }]\n *\n * // Multiple keys (OR logic - either can identify)\n * uniqueKeys: [\n * { fields: ['email'], findOrCreate: true },\n * { fields: ['phone'], findOrCreate: true }\n * ]\n * ```\n *\n * @version 0.1.0\n * @since 0.0.5\n * @author AMBROISE PARK Consulting\n */\ninterface UniqueKeyDefinition {\n /** Field names that together form the unique key (single or composite) */\n fields: string[];\n /** Custom error message when duplicate is found */\n errorMessage?: string;\n /** Skip validation for draft documents (default: false) */\n skipForDrafts?: boolean;\n /**\n * Return existing document instead of throwing error on duplicate (default: false)\n * When true, create operations will return the existing document if a match is found\n */\n findOrCreate?: boolean;\n}","UnsubscribeFn":"/**\n * Function to unsubscribe from auth state changes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UnsubscribeFn = () => void;","UpdateEntityData":"/**\n * Data required for updating an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UpdateEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The ID of the entity to update */\n id: string;\n /** The partial entity data to update */\n payload: Partial<T>;\n /** Optional idempotency key for preventing duplicate operations */\n idempotencyKey?: string;\n}","UpdateEntityRequest":"/**\n * Update entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UpdateEntityRequest = v.InferOutput<typeof updateEntitySchema>;","UpdateEntityResponse":"/**\n * Update entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UpdateEntityResponse {\n success: boolean;\n id: string;\n data: Record<string, any>;\n}","UpdateSubscriptionFn":"/**\n * Writes a subscription update for a user.\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ntype UpdateSubscriptionFn = (userId: string, data: SubscriptionUpdate, authProvider: BillingAuthProvider) => Promise<void>;","UploadOptions":"/** Options for file upload */\ninterface UploadOptions {\n /** Folder path within the storage bucket (e.g. 'photos/2024'). Omit to upload to bucket root. */\n storagePath?: string;\n /** Custom filename override */\n filename?: string;\n /** Progress callback */\n onProgress?: UploadProgressCallback;\n /** AbortSignal to cancel the upload */\n signal?: AbortSignal;\n}","UploadProgressCallback":"/** Progress callback for upload operations (0-100) */\ntype UploadProgressCallback = (percent: number) => void;","UploadResult":"/** Result of an upload operation */\ninterface UploadResult {\n /** Public URL of the uploaded file */\n url: string;\n /** Storage path of the uploaded file (for deletion) */\n path: string;\n}","UseFunctionsCallResult":"/**\n * Result type for useFunctionsCall hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsCallResult<TData> {\n /** Execute the function call */\n call: (params?: object) => Promise<TData>;\n /** Whether the call is in progress */\n isLoading: boolean;\n /** Whether the call encountered an error */\n isError: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Call result data */\n data: TData | undefined;\n}","UseFunctionsMutationOptions":"/**\n * React Query mutation options for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsMutationOptions<TData, TVariables> {\n /** Number of retry attempts */\n retry?: number;\n /** Callback before mutation */\n onMutate?: (variables: TVariables) => void | Promise<void>;\n /** Callback for successful mutations */\n onSuccess?: (data: TData, variables: TVariables) => void;\n /** Callback for failed mutations */\n onError?: (error: FunctionError, variables: TVariables) => void;\n /** Callback after mutation (success or failure) */\n onSettled?: (data: TData | undefined, error: FunctionError | null, variables: TVariables) => void;\n}","UseFunctionsMutationResult":"/**\n * Result type for useFunctionsMutation hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsMutationResult<TData, TVariables> {\n /** Execute the mutation */\n mutate: (variables: TVariables) => void;\n /** Execute the mutation and return a promise */\n mutateAsync: (variables: TVariables) => Promise<TData>;\n /** Whether the mutation is in progress */\n isLoading: boolean;\n /** Whether the mutation encountered an error */\n isError: boolean;\n /** Whether the mutation succeeded */\n isSuccess: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Mutation result data */\n data: TData | undefined;\n /** Reset the mutation state */\n reset: () => void;\n}","UseFunctionsQueryOptions":"/**\n * React Query options for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsQueryOptions<TData> {\n /** Whether the query is enabled */\n enabled?: boolean;\n /** Time until data is considered stale */\n staleTime?: number;\n /** Time until inactive data is garbage collected */\n gcTime?: number;\n /** Number of retry attempts */\n retry?: number;\n /** Whether to keep previous data while fetching */\n keepPreviousData?: boolean;\n /** Whether to refetch on window focus */\n refetchOnWindowFocus?: boolean;\n /** Callback for successful queries */\n onSuccess?: (data: TData) => void;\n /** Callback for failed queries */\n onError?: (error: FunctionError) => void;\n}","UseFunctionsQueryResult":"/**\n * Result type for useFunctionsQuery hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsQueryResult<TData> {\n /** Query data */\n data: TData | undefined;\n /** Whether the query is loading */\n isLoading: boolean;\n /** Whether the query encountered an error */\n isError: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Whether the query is currently fetching (includes background refetch) */\n isFetching: boolean;\n /** Refetch the query */\n refetch: () => Promise<void>;\n}","UseTranslationOptionsEnhanced":"/**\n * Enhanced options for useTranslation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UseTranslationOptionsEnhanced<KPrefix> = Parameters<typeof useTranslation$1>[1] & {\n /** Whether this namespace is an app namespace */\n appNamespace?: boolean;\n}","UserContext":"/**\n * Provides a unified interface for accessing all user data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserContext {\n /** Core authentication data */\n auth: AuthUser;\n /** User profile information */\n profile: UserProfile;\n /** Subscription information */\n subscription: UserSubscription;\n}","UserProfile":"/**\n * Contains authorization and user preference information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserProfile {\n /** The user's unique identifier (matches AuthUser.id) */\n userId: string;\n /** The user's display name */\n displayName?: string;\n /** The user's email address */\n email?: string;\n /** The user's profile photo URL */\n photoURL?: string;\n /** Additional profile data */\n [key: string]: unknown;\n}","UserProviderData":"/**\n * Stores information specific to a user's identity from a particular authentication provider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserProviderData {\n /** The unique identifier for the authentication provider (e.g., 'google.com') */\n providerId: string;\n /** The user's unique identifier within this provider */\n uid: string;\n /** The user's email address from this provider */\n email?: string | null;\n /** The user's display name from this provider */\n displayName?: string | null;\n /** The user's photo URL from this provider */\n photoURL?: string | null;\n /** The user's phone number from this provider */\n phoneNumber?: string | null;\n /** Additional provider-specific data */\n [key: string]: any;\n}","UserRole":"/**\n * Type for user role names\n * Apps can extend this with their own custom roles\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES] | string;","UserSubscription":"/**\n * Type for user subscription data\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UserSubscription = v.InferOutput<typeof UserSubscriptionSchema>;","ValidateBlockOptions":"/**\n * Optional options for `validateBlock`. When `caller` is present, the\n * widget's `surface` is matched against the caller's access tier after\n * envelope / kind / payload checks pass.\n */\ninterface ValidateBlockOptions {\n readonly caller?: {\n readonly access: CanvasCallerAccess;\n };\n}","ValidationRules":"/**\n * Enhanced validation rules with type checking\n * @template T - The field type\n *\n * @example\n * ```typescript\n * // Select field with dropdown options\n * validation: {\n * required: true,\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n * }\n *\n * // Text field with length validation\n * validation: {\n * required: true,\n * minLength: 3,\n * maxLength: 100\n * }\n *\n * // Number field with range validation\n * validation: {\n * required: true,\n * min: 0,\n * max: 1000\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ValidationRules<T extends string = FieldType> {\n /** Whether the field is required */\n required?: boolean;\n /** Minimum value (for number fields) */\n min?: T extends 'number' | 'range' | 'year' ? number : never;\n /** Maximum value (for number fields) */\n max?: T extends 'number' | 'range' | 'year' ? number : never;\n /** Minimum length (for text fields) */\n minLength?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? number : never;\n /** Maximum length (for text fields) */\n maxLength?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? number : never;\n /** Regex pattern (for text fields) */\n pattern?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? string : never;\n /**\n * Options for select, multiselect, and radio fields.\n * Can be:\n * - An array of option objects\n * - A function that returns an array (receives form values for dynamic options)\n *\n * For year fields, use `type: 'year'`:\n * ```typescript\n * year: {\n * type: 'year',\n * visibility: 'guest',\n * validation: {\n * required: true,\n * min: 1900, // Optional: defaults to 1900\n * max: 2100 // Optional: defaults to current year + 10\n * }\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Static array\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n *\n * // Dynamic function (depends on other field values)\n * options: (formValues) => {\n * return getModelsForMake(formValues.make);\n * }\n * ```\n */\n options?: T extends 'select' | 'multiselect' | 'radio' | 'combobox' ? Array<{\n value: string;\n label: string;\n }> | ((formValues?: Record<string, any>) => Array<{\n value: string;\n label: string;\n }>) : never;\n /** Collection name for reference fields */\n reference?: T extends 'reference' ? string : never;\n /** Whether the field is nullable */\n nullable?: boolean;\n /**\n * Custom Valibot schema for this field\n *\n * When provided, this schema is used directly instead of the registry lookup.\n * This makes the entity the single source of truth for custom field schemas,\n * working everywhere (client + server) without separate registrations.\n *\n * @example\n * ```typescript\n * repairs: {\n * type: 'repairOperations',\n * visibility: 'admin',\n * validation: {\n * schema: v.array(v.object({\n * operation: v.string(),\n * cost: v.number()\n * }))\n * }\n * }\n * ```\n */\n schema?: v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;\n}","ValueTypeForField":"/**\n * Gets the value type for a specific field type\n * @template T - The field type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ValueTypeForField<T extends string> = T extends keyof FieldTypeToValue ? FieldTypeToValue[T] : unknown;","VerifiedToken":"/** Result of token verification */\ninterface VerifiedToken {\n /** The user's unique identifier */\n uid: string;\n /** Optional: email from the token */\n email?: string;\n /** Optional: additional claims embedded in the token */\n claims?: Record<string, unknown>;\n}","Visibility":"/**\n * Visibility level for entity fields\n * Controls who can SEE a field - hierarchical (each level sees levels below)\n *\n * Hierarchy: guest < user < admin < super\n *\n * - 'guest': Everyone (even unauthenticated)\n * - 'user': Authenticated users (see guest + user fields)\n * - 'admin': Admins (see guest + user + admin fields)\n * - 'super': Super admins (see guest + user + admin + super fields)\n * - 'technical': System fields (admins+ only, shown as read-only in forms)\n * - 'hidden': Never exposed to client (passwords, tokens, API keys)\n *\n * Override with `editable` for write permissions.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Visibility = (typeof VISIBILITY)[keyof typeof VISIBILITY];","WebhookEvent":"/**\n * Webhook event type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WebhookEvent = v.InferOutput<typeof WebhookEventSchema>;","WebhookEventData":"/**\n * Webhook event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface WebhookEventData {\n provider: string;\n eventType: string;\n data: Record<string, unknown>;\n signature?: string;\n timestamp: Date;\n}","WhereClause":"/**\n * Firestore where clause tuple\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WhereClause = [string, WhereOperator, any];","WhereOperator":"/**\n * Valid operators for database queries\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WhereOperator = '==' | '!=' | '<' | '<=' | '>' | '>=' | 'array-contains' | 'array-contains-any' | 'in' | 'not-in';","WidgetDef":"/**\n * Declarative widget definition — the static metadata a widget module\n * exports before it is paired with its React component for registration.\n *\n * Discriminator: `kind` (string literal, unique in the catalog).\n *\n * - `schema` validates the block `payload` for this kind.\n * - `actions` is a record of action-name -> schema validating that action's event payload.\n * - `surface` controls policy-layer gating.\n * - `defaultLifetime` is used by the agent-side emitter when the agent does not override it.\n */\ninterface WidgetDef<Kind extends string = string, PayloadSchema extends AnyValibotSchema = AnyValibotSchema, Actions extends Record<string, AnyValibotSchema> = Record<string, AnyValibotSchema>> {\n readonly kind: Kind;\n readonly schema: PayloadSchema;\n readonly actions: Actions;\n readonly surface: CanvasSurface;\n readonly defaultLifetime?: CanvasLifetime;\n}","WithMetadata":"/**\n * Utility type that adds metadata to a document.\n * @template T - The base document type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WithMetadata<T> = T & EntityMetadata;","dndevSchema":"/**\n * Unified schema type that includes DoNotDev metadata\n * @template T - The entity/data type\n *\n * Unified schema type for all DoNotDev schemas\n * Uses Valibot's BaseSchema for validation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype dndevSchema<T> = v.BaseSchema<unknown, T, v.BaseIssue<unknown>> & {\n metadata: SchemaMetadata;\n}","AUTH_COMPUTED_KEYS":"/**\n * Auth computed keys - keys that are computed from store state\n */\ndeclare const AUTH_COMPUTED_KEYS: Set<keyof AuthAPI>;","AUTH_STORE_KEYS":"/**\n * Auth store keys - keys that come from Zustand store (reactive state)\n */\ndeclare const AUTH_STORE_KEYS: Set<keyof AuthAPI>;","AuthHardening":"declare class AuthHardening implements AuthHardeningContext {\n private readonly store;\n private readonly maxAttempts;\n private readonly lockoutMs;\n /** Expose for auth adapters to enforce idle session timeout */\n readonly sessionTimeoutMs: number;\n constructor(config?: AuthHardeningConfig);\n /**\n * Call BEFORE a sign-in attempt.\n * @throws {Error} if the identifier is currently locked.\n */\n checkLockout(identifier: string): void;\n /**\n * Call AFTER a failed sign-in attempt.\n * @returns current attempt count and whether the account is now locked.\n */\n recordFailure(identifier: string): LockoutResult;\n private _evictExpired;\n /**\n * Call AFTER a successful sign-in — resets the failure counter.\n */\n recordSuccess(identifier: string): void;\n /**\n * Check if a session has expired based on last activity timestamp.\n * @param lastActivityMs - `Date.now()` at last activity\n */\n isSessionExpired(lastActivityMs: number): boolean;\n /** Current entry for an identifier (for audit logging). */\n getEntry(identifier: string): LockoutEntry | undefined;\n}","BILLING_STORE_KEYS":"/**\n * Billing store keys - keys that come from local state (useState, not Zustand)\n * Note: `status` is computed, not stored\n */\ndeclare const BILLING_STORE_KEYS: Set<keyof BillingAPI>;","BaseStorageStrategy":"class BaseStorageStrategy implements IStorageStrategy {\n /**\n * Build a storage key with proper namespacing and scoping\n * @param key Base key\n * @param scope Storage scope\n * @param userId User ID for user scope\n * @param allowMissingUserId If true, returns null instead of throwing when userId is missing (for graceful degradation during sign out)\n * @returns Properly formatted storage key, or null if userId is missing and allowMissingUserId is true\n */\n protected buildKey(key: string, scope: 'user' | 'global' | 'session', userId?: string | null, allowMissingUserId?: boolean): string | null;\n /**\n * Abstract method to retrieve data from storage\n */\n abstract get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Abstract method to store data\n */\n abstract set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Abstract method to remove data from storage\n */\n abstract remove(key: string): Promise<void>;\n /**\n * Abstract method to clear all data in the specified scope\n */\n abstract clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n}","CONSENT_LEVELS":"/**\n * Consent category constants\n * Must match CONSENT_CATEGORY from @donotdev/types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CONSENT_LEVELS: {\n readonly NECESSARY: \"necessary\";\n readonly FUNCTIONAL: \"functional\";\n readonly ANALYTICS: \"analytics\";\n readonly MARKETING: \"marketing\";\n}","CURRENCY_MAP":"/**\n * Top ~50 currencies: 3-letter code, locale, symbol.\n * Unknown codes: getCurrencyLocale → 'en-US', getCurrencySymbol → code as-is.\n */\ndeclare const CURRENCY_MAP: Record<string, CurrencyEntry>;","ClaimsCache":"/**\n * ClaimsCache service\n *\n * Handles offline claims caching with graceful degradation:\n * - Server: Returns {} (safe default, no claims checking on server)\n * - Online: Always verify with server, update cache\n * - Offline: Use cached claims if offlineTrustEnabled=true\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class ClaimsCache {\n private offlineTrustEnabled;\n private storageKey;\n private userId;\n private storage;\n constructor(options?: ClaimsCacheOptions);\n /**\n * CSR/SSR safe client detection\n */\n private isClient;\n /**\n * CSR/SSR safe network detection\n * Server: Returns false (can't detect network)\n * Client: Returns navigator.onLine\n */\n private isOnline;\n /**\n * Get claims with graceful degradation\n *\n * Server: Returns {} (safe default, no claims checking on server)\n * Online: Always verify with server, update cache\n * Offline: Use cached claims if offlineTrustEnabled=true\n *\n * @param verifyFn - Function to verify claims with server\n * @returns Claims object\n */\n getClaims<T extends Claims = Claims>(verifyFn: () => Promise<T>): Promise<T>;\n /**\n * Get cached claims from storage\n */\n private getCachedClaims;\n /**\n * Set claims in cache\n */\n setClaims<T extends Claims = Claims>(claims: T): Promise<void>;\n /**\n * Clear cached claims\n */\n clearClaims(): Promise<void>;\n /**\n * Get storage key with user scoping\n */\n private getStorageKey;\n /**\n * Update user ID (for user-scoped storage)\n */\n setUserId(userId: string | null): void;\n /**\n * Update offline trust setting\n */\n setOfflineTrustEnabled(enabled: boolean): void;\n}","ConditionBuilder":"/**\n * Chainable condition builder.\n * Wraps a ConditionExpression and provides .or()/.and() combinators.\n * Implements ConditionBuilderLike from @donotdev/types.\n */\ndeclare class ConditionBuilder {\n /** The underlying condition expression (serializable data) */\n readonly expression: ConditionExpression;\n constructor(expression: ConditionExpression);\n /** The discriminant for ConditionExpression — delegates to inner expression */\n get type(): ConditionExpression['type'];\n /** Combine with OR logic */\n or(other: ConditionExpression | ConditionBuilder): ConditionBuilder;\n /** Combine with AND logic */\n and(other: ConditionExpression | ConditionBuilder): ConditionBuilder;\n}","DEFAULT_CRUD_TIMEOUT":"/** Default timeout for CRUD operations (15 seconds) */\ndeclare const DEFAULT_CRUD_TIMEOUT = 15000;","DEFAULT_ERROR_MESSAGES":"/**\n * Default error messages for standard error codes\n * These provide a fallback when no specific message is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_ERROR_MESSAGES: Record<ErrorCode, string>;","DEFAULT_UPLOAD_TIMEOUT":"/** Default timeout for upload operations (30 seconds) */\ndeclare const DEFAULT_UPLOAD_TIMEOUT = 30000;","DEGRADED_AI_API":"/**\n * Degraded AI API - returned when @donotdev/ai is not installed or not available\n */\ndeclare const DEGRADED_AI_API: AIAPI;","DEGRADED_AUTH_API":"/**\n * Degraded Auth API - returned when @donotdev/auth is not installed or not available\n */\ndeclare const DEGRADED_AUTH_API: AuthAPI;","DEGRADED_BILLING_API":"/**\n * Degraded Billing API - returned when @donotdev/billing is not installed or not available\n */\ndeclare const DEGRADED_BILLING_API: BillingAPI;","DEGRADED_CRUD_API":"/**\n * Degraded CRUD API - returned when @donotdev/crud is not installed or not available\n */\ndeclare const DEGRADED_CRUD_API: CrudAPI;","DEGRADED_OAUTH_API":"/**\n * Degraded OAuth API - returned when @donotdev/oauth is not installed or not available\n */\ndeclare const DEGRADED_OAUTH_API: OAuthAPI;","EventEmitter":"/**\n * Enhanced EventEmitter implementation with type safety, event caching, and additional features\n *\n * This EventEmitter provides a robust event system with:\n * - Type safety for event handlers\n * - One-time listeners with automatic cleanup\n * - Context binding for handlers\n * - Listener count warnings for debugging\n * - Error handling for handler exceptions\n * - Memory leak prevention\n * - Event caching for race condition handling\n * - Automatic cache cleanup\n *\n * **Key Features:**\n * - Subscribe/unsubscribe to events\n * - One-time listeners (auto-remove after first call)\n * - Context binding for method handlers\n * - Listener count monitoring and warnings\n * - Error isolation (one handler error doesn't affect others)\n * - Memory leak prevention with proper cleanup\n * - Event caching to handle initialization race conditions\n * - Automatic cache cleanup (3-minute TTL)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * **Event Caching:**\n * Events are automatically cached when emitted to handle race conditions during\n * feature initialization. Listeners can retrieve cached events on startup to\n * ensure they don't miss events that occurred before they were initialized.\n *\n * **Usage Pattern:**\n * ```typescript\n * const emitter = new EventEmitter();\n *\n * // Subscribe to event\n * const unsubscribe = emitter.on('myEvent', (data) => {\n * console.log('Event received:', data);\n * });\n *\n * // Emit event (automatically cached)\n * emitter.emit('myEvent', { message: 'Hello' });\n *\n * // Get cached events for race condition handling\n * const cachedEvents = emitter.getCachedEvents('myEvent');\n *\n * // Unsubscribe\n * unsubscribe();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class EventEmitter {\n /**\n * Map of event names to arrays of handlers\n * @private\n */\n private events;\n /**\n * Map of event names to cached event data for race condition handling\n * @private\n */\n private eventCache;\n /**\n * Maximum number of listeners per event before warnings\n * @private\n */\n private maxListeners;\n /**\n * Cache TTL in milliseconds (3 minutes)\n * @private\n */\n private readonly cacheTTL;\n /**\n * Subscribes to an event with optional context binding\n *\n * **Usage:**\n * ```typescript\n * // Basic subscription\n * const unsubscribe = emitter.on('myEvent', (data) => {\n * console.log('Event received:', data);\n * });\n *\n * // With context binding\n * const unsubscribe = emitter.on('myEvent', handler, this);\n * ```\n *\n * **Features:**\n * - Returns unsubscribe function for easy cleanup\n * - Supports context binding for method handlers\n * - Validates handler is a function\n * - Monitors listener count for debugging\n *\n * @param eventName - Name of the event to listen for\n * @param handler - Function to call when event is emitted\n * @param context - Optional context to bind handler to\n * @returns Function to unsubscribe from the event\n * @throws TypeError if handler is not a function\n */\n on<T = any>(eventName: string, handler: InternalEventHandler, context?: T): () => void;\n /**\n * Subscribes to an event for a single emission (auto-removes after first call)\n *\n * **Usage:**\n * ```typescript\n * // One-time listener\n * const unsubscribe = emitter.once('myEvent', (data) => {\n * console.log('Event received once:', data);\n * });\n *\n * // With context binding\n * const unsubscribe = emitter.once('myEvent', handler, this);\n * ```\n *\n * **Features:**\n * - Automatically removes listener after first call\n * - Returns unsubscribe function (though not needed for one-time)\n * - Supports context binding for method handlers\n * - Useful for initialization events or one-time callbacks\n *\n * @param eventName - Name of the event to listen for\n * @param handler - Function to call when event is emitted\n * @param context - Optional context to bind handler to\n * @returns Function to unsubscribe from the event (though auto-removes)\n * @throws TypeError if handler is not a function\n */\n once<T = any>(eventName: string, handler: InternalEventHandler, context?: T): () => void;\n /**\n * Unsubscribe from an event\n *\n * @param eventName Event name\n * @param handler Event handler function to remove\n * @returns Whether the handler was removed\n */\n off(eventName: string, handler: InternalEventHandler): boolean;\n /**\n * Emits an event with arguments to all registered handlers and caches the event\n *\n * **Usage:**\n * ```typescript\n * // Emit with data (automatically cached)\n * emitter.emit('myEvent', { message: 'Hello' });\n *\n * // Emit with multiple arguments (all arguments cached)\n * emitter.emit('myEvent', data1, data2, data3);\n * ```\n *\n * **Features:**\n * - Calls all registered handlers for the event\n * - Handles one-time listeners (auto-removes after call)\n * - Isolates errors (one handler error doesn't affect others)\n * - Returns whether any handlers were called\n * - Supports any number of arguments\n * - Automatically caches event data for race condition handling\n * - Performs automatic cache cleanup\n *\n * **Event Caching:**\n * Events are automatically cached when emitted to handle race conditions during\n * feature initialization. The cache has a 3-minute TTL and is automatically\n * cleaned up to prevent memory leaks.\n *\n * **Error Handling:**\n * - Individual handler errors are caught and logged\n * - Errors don't prevent other handlers from being called\n * - Console errors are logged for debugging\n * - Cache operations are isolated from handler errors\n *\n * @param eventName - Name of the event to emit\n * @param args - Arguments to pass to all handlers and cache\n * @returns True if any handlers were called, false if no handlers exist\n */\n emit(eventName: string, ...args: any[]): boolean;\n /**\n * Check if an event has subscribers\n *\n * @param eventName Event name\n * @returns Whether the event has subscribers\n */\n hasListeners(eventName: string): boolean;\n /**\n * Get the number of subscribers for an event\n *\n * @param eventName Event name\n * @returns Number of subscribers\n */\n listenerCount(eventName: string): number;\n /**\n * Get all registered event names\n *\n * @returns Array of event names\n */\n eventNames(): string[];\n /**\n * Get all listeners for an event\n *\n * @param eventName Event name\n * @returns Array of handler functions\n */\n listeners(eventName: string): InternalEventHandler[];\n /**\n * Remove all event listeners\n *\n * @param eventName Optional event name to remove listeners for\n */\n removeAllListeners(eventName?: string): void;\n /**\n * Set the maximum number of listeners per event before warnings\n *\n * @param n Maximum number of listeners\n * @returns This instance for chaining\n */\n setMaxListeners(n: number): this;\n /**\n * Get the maximum number of listeners per event\n *\n * @returns Maximum number of listeners\n */\n getMaxListeners(): number;\n /**\n * Get or create the listener array for an event\n *\n * @param eventName Event name\n * @returns Array of listeners\n * @private\n */\n private getListeners;\n /**\n * Check if we have too many listeners and warn if necessary\n *\n * @param eventName Event name\n * @private\n */\n private checkListenerCount;\n /**\n * Cache an event for race condition handling during feature initialization\n *\n * **Purpose:**\n * Events are cached when emitted to handle race conditions where listeners\n * might be initialized after events have already been emitted. This ensures\n * that listeners can retrieve missed events during their initialization.\n *\n * **Automatic Cleanup:**\n * The cache automatically removes events older than the TTL (3 minutes) to\n * prevent memory leaks and ensure only recent events are available.\n *\n * **Usage:**\n * This method is called automatically by the `emit()` method. Manual usage\n * is typically not required unless implementing custom event handling.\n *\n * @param eventName - Name of the event to cache\n * @param eventData - Event data to cache (array of arguments)\n * @private\n */\n private cacheEvent;\n /**\n * Get cached events for a specific event type\n *\n * **Purpose:**\n * Retrieves events that were emitted before a listener was initialized,\n * allowing listeners to catch up on missed events during startup.\n *\n * **Use Case:**\n * This is primarily used by BaseListener implementations during their\n * initialization to process events that occurred before they were ready.\n *\n * **Cache Behavior:**\n * - Returns events from the last 3 minutes\n * - Automatically excludes expired events\n * - Returns empty array if no cached events exist\n *\n * **Usage:**\n * ```typescript\n * // In BaseListener.initialize()\n * const cachedEvents = this.eventEmitter.getCachedEvents('MY_EVENT');\n * cachedEvents.forEach(eventData => {\n * this.handleEvent('MY_EVENT', eventData);\n * });\n * ```\n *\n * @param eventName - Name of the event to retrieve cached data for\n * @returns Array of cached event data (array of arguments for each event)\n */\n getCachedEvents(eventName: string): any[][];\n /**\n * Clear cached events for a specific event type\n *\n * **Purpose:**\n * Manually clears cached events for a specific event type. This is useful\n * for memory management or when cached events are no longer needed.\n *\n * **Use Cases:**\n * - Memory cleanup after processing cached events\n * - Resetting event state during testing\n * - Manual cache management for specific events\n *\n * **Usage:**\n * ```typescript\n * // Clear cached events after processing\n * const cachedEvents = emitter.getCachedEvents('MY_EVENT');\n * // Process events...\n * emitter.clearCachedEvents('MY_EVENT');\n * ```\n *\n * @param eventName - Name of the event to clear cache for\n */\n clearCachedEvents(eventName: string): void;\n /**\n * Clear all cached events\n *\n * **Purpose:**\n * Clears all cached events across all event types. This is useful for\n * complete cache reset or memory cleanup.\n *\n * **Use Cases:**\n * - Complete cache reset during testing\n * - Memory cleanup in low-memory environments\n * - Application state reset\n *\n * **Usage:**\n * ```typescript\n * // Clear all cached events\n * emitter.clearAllCachedEvents();\n * ```\n */\n clearAllCachedEvents(): void;\n /**\n * Get cache statistics for monitoring and debugging\n *\n * **Purpose:**\n * Provides information about the current cache state for monitoring,\n * debugging, and performance analysis.\n *\n * **Returns:**\n * Object containing cache statistics including event counts, memory usage\n * estimates, and cache health information.\n *\n * **Usage:**\n * ```typescript\n * const stats = emitter.getCacheStats();\n * console.log(`Cache has ${stats.totalEvents} events across ${stats.eventTypes} types`);\n * ```\n *\n * @returns Object containing cache statistics\n */\n getCacheStats(): {\n totalEvents: number;\n eventTypes: number;\n oldestEvent: number | null;\n newestEvent: number | null;\n memoryEstimate: string;\n };\n /**\n * Clean up expired events from the cache\n *\n * **Purpose:**\n * Removes events older than the TTL (3 minutes) from the cache to prevent\n * memory leaks and ensure only recent events are available.\n *\n * **Automatic Execution:**\n * This method is called automatically during event caching and retrieval\n * to maintain cache health. Manual calls are typically not required.\n *\n * @param eventName - Name of the event to clean up (optional, cleans all if not provided)\n * @private\n */\n private cleanupCache;\n}","FRAMEWORK_FEATURES":"/**\n * Available framework features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FRAMEWORK_FEATURES: {\n readonly AUTH: \"auth\";\n readonly OAUTH: \"oauth\";\n readonly I18N: \"i18n\";\n readonly BILLING: \"billing\";\n readonly ROUTES: \"routes\";\n readonly THEMES: \"themes\";\n readonly COMPONENTS: \"components\";\n readonly CRUD: \"crud\";\n readonly FORMS: \"forms\";\n readonly REALTIME: \"realtime\";\n readonly STORAGE: \"storage\";\n readonly AI: \"ai\";\n}","HybridStorageStrategy":"/**\n * Hybrid storage strategy that combines local and cloud storage\n * Premium users get both local caching and cloud persistence\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class HybridStorageStrategy implements IStorageStrategy {\n /**\n * Local storage strategy for caching and fallback\n */\n private localStrategy;\n /**\n * User ID for scoped storage\n */\n private userId;\n /**\n * API endpoint for cloud storage\n */\n private apiEndpoint;\n /**\n * Optional auth token getter for authenticated cloud requests\n */\n private getAuthToken?;\n /**\n * Create a new HybridStorageStrategy\n * @param userId User ID for user-scoped storage (required)\n * @param apiEndpoint Optional API endpoint for cloud storage\n * @param getAuthToken Optional async function that returns the current auth token\n */\n constructor(userId: string, apiEndpoint?: string, getAuthToken?: () => Promise<string | null>);\n /**\n * Build headers for cloud API requests, including Authorization if available\n */\n private buildHeaders;\n /**\n * Retrieve data from storage\n * First checks local storage for cached data, then falls back to cloud if needed\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data in both local and cloud storage.\n *\n * Local storage is the source of truth - writes always succeed locally first.\n * Cloud sync is fire-and-forget: failures are logged as warnings, never thrown.\n * This ensures offline/degraded network never crashes the consumer's app.\n *\n * **Do NOT await cloud writes here.** Same pattern as {@link remove}.\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from both local and cloud storage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope from both local and cloud storage\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n /**\n * Build a storage key with proper namespacing and scoping\n * @param key Base key\n * @param scope Storage scope\n * @param userId User ID for user scope\n * @param allowMissingUserId If true, returns null instead of throwing when userId is missing (for graceful degradation during sign out)\n * @returns Properly formatted storage key, or null if userId is missing and allowMissingUserId is true\n */\n private buildKey;\n /**\n * Get data from cloud storage\n * @private\n */\n private getFromCloud;\n /**\n * Store data in cloud storage\n * @private\n */\n private setToCloud;\n /**\n * Remove data from cloud storage\n * @private\n */\n private removeFromCloud;\n /**\n * Clear all data in the specified scope from cloud storage\n * @private\n */\n private clearFromCloud;\n}","LANGUAGE_COOKIE":"/**\n * Cookie holding the visitor's language (BCP-47 code). Written by the language store\n * on every resolution and change; read by the server to render in that language.\n * Functional cookie (interface preference), no consent required.\n */\ndeclare const LANGUAGE_COOKIE = \"dndev-lang\";","LocalStorageStrategy":"/**\n * Storage strategy using browser's localStorage\n *\n * Provides client-side storage using the browser's localStorage API.\n * Available to all users regardless of subscription tier.\n *\n * **Capabilities:**\n * - User-scoped storage (when userId is provided)\n * - Global storage for shared data\n * - Optional encryption for sensitive data\n * - Automatic key scoping and validation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * **Limitations:**\n * - Limited by browser storage quotas\n * - Data is lost when localStorage is cleared\n * - No cloud synchronization\n * - No cross-device data sharing\n */\ndeclare class LocalStorageStrategy extends BaseStorageStrategy {\n /**\n * User ID for user-scoped storage\n * Can be null for non-authenticated users (only global/session storage available)\n */\n private userId;\n /**\n * Create a new LocalStorageStrategy\n * @param userId Optional user ID for user-scoped storage\n */\n constructor(userId?: string | null);\n /**\n * Set the current user ID\n * @param userId User ID or null\n */\n setUserId(userId: string | null): void;\n /**\n * Retrieve data from localStorage\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data in localStorage\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from localStorage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n}","OAUTH_STORE_KEYS":"/**\n * OAuth store keys - keys that come from Zustand store (reactive state)\n */\ndeclare const OAUTH_STORE_KEYS: Set<keyof OAuthAPI>;","SingletonManager":"/**\n * Singleton manager for complex initialization scenarios\n * Provides async initialization with proper error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class SingletonManager {\n private static instances;\n private static initializing;\n private static initialized;\n /**\n * Get or create a singleton instance with async initialization\n *\n * @param key - Unique key for the singleton\n * @param factory - Factory function that returns the instance\n * @param options - Initialization options\n * @returns Promise that resolves to the singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static getOrCreate<T>(key: string, factory: () => Promise<T> | T, options?: {\n ssrSafe?: boolean;\n timeout?: number;\n cacheFailures?: boolean;\n fallbackFactory?: () => T;\n }): Promise<T>;\n /**\n * Check if a singleton is initialized\n *\n * @param key - Singleton key\n * @returns True if initialized\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static isInitialized(key: string): boolean;\n /**\n * Clear a singleton instance (for testing)\n *\n * @param key - Singleton key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static clear(key: string): void;\n /**\n * Clear all singleton instances (for testing)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static clearAll(): void;\n}","StorageManager":"/**\n * Storage manager implementation\n * Handles storage operations with automatic strategy selection based on user tier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class StorageManager implements IStorageManager {\n /**\n * Current storage strategy\n */\n private strategy;\n private initialized;\n private userId;\n private isPro;\n /**\n * Create a new StorageManager\n * @param initialStrategy Initial storage strategy\n */\n constructor(initialStrategy?: IStorageStrategy);\n /**\n * Lazily initialize the event listeners\n */\n private initialize;\n /**\n * Set the storage strategy\n * @param strategy New storage strategy\n */\n setStrategy(strategy: IStorageStrategy): void;\n /**\n * Update user information and select appropriate strategy\n * @param userId User ID or null\n * @param isPro Whether user has pro/enterprise tier\n */\n updateUser(userId: string | null, isPro: boolean): void;\n private updateStrategy;\n /**\n * Retrieve data from storage\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n /**\n * Store sensitive data with encryption\n */\n setSecure<T>(key: string, value: T, options?: Omit<StorageOptions, 'encryption'>): Promise<void>;\n /**\n * Retrieve sensitive data with decryption\n */\n getSecure<T>(key: string, options?: Omit<StorageOptions, 'encryption'>): Promise<T | null>;\n}","TokenManager":"/**\n * TokenManager handles authentication token lifecycle including\n * storage, automatic refresh, expiration detection, and status tracking\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class TokenManager {\n private refreshTimerId;\n private refreshAttempts;\n private refreshBuffer;\n private maxRefreshAttempts;\n private autoRefresh;\n private authInstance;\n private onTokenExpired?;\n private onFatalError?;\n private refreshCallback?;\n private tokenInfo;\n /**\n * Creates a new TokenManager\n *\n * @param authInstance Optional auth instance for automatic refresh\n * @param options Configuration options\n */\n constructor(authInstance?: unknown, options?: TokenManagerOptions);\n /**\n * Initialize token management with token information\n *\n * @param tokenInfo Initial token information\n */\n initialize(tokenInfo: Omit<ExtendedTokenInfo, 'status'>): void;\n /**\n * Get the current token information\n *\n * @returns Current token information\n */\n getTokenInfo(): ExtendedTokenInfo;\n /**\n * Reset the token manager\n * Clears token information and cancels scheduled refreshes\n */\n reset(): void;\n /**\n * Force an immediate token refresh\n *\n * @param user Auth user with getIdToken/getIdTokenResult methods\n * @returns Promise resolving to the refreshed token or null\n */\n forceRefresh(user?: AuthUserLike | null): Promise<string | null>;\n /**\n * Get a valid token, automatically refreshing if needed\n *\n * @returns Promise resolving to a valid token or null\n */\n getValidToken(): Promise<string | null>;\n /**\n * Register a callback for token refresh\n *\n * @param callback Function that returns a promise resolving to success status\n * @returns Unsubscribe function\n */\n onRefreshNeeded(callback: () => Promise<boolean>): () => void;\n /**\n * Update token information and emit the change\n *\n * @param tokenInfo New token information (partial)\n */\n private updateTokenInfo;\n /**\n * Calculate token status based on expiration time\n *\n * @param expiresAt Token expiration date\n * @returns Current token status\n */\n private calculateTokenStatus;\n /**\n * Schedule token refresh based on expiration time\n *\n * @param expiresAt Token expiration date\n */\n private scheduleRefresh;\n /**\n * Handle errors during token refresh\n *\n * @param error Error that occurred\n */\n private handleRefreshError;\n /**\n * Handle general errors\n *\n * @param error Error that occurred\n */\n private handleError;\n /**\n * Clear the refresh timer\n */\n private clearRefreshTimer;\n}","ViewportHandler":"/**\n * Viewport handler class\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class ViewportHandler {\n private options;\n private visibleItems;\n private hasTriggered;\n constructor(options?: ViewportDetectionOptions);\n /**\n * Handle intersection observer entry\n */\n handleIntersection(entry: IntersectionObserverEntry, container?: Element): ViewportDetectionResult;\n /**\n * Handle scroll event for item tracking\n */\n handleScroll(container: Element): ViewportDetectionResult;\n /**\n * Update visible items based on container children\n */\n private updateVisibleItems;\n /**\n * Check if element is in viewport\n */\n private isElementInViewport;\n}","areFeaturesAvailable":"/**\n * Check if multiple features are available\n * @param features Array of features to check\n * @returns True if all features are available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function areFeaturesAvailable(features: FrameworkFeature[]): boolean;","canRedirectExternally":"/**\n * Check if external redirects are available\n *\n * Useful for conditional rendering or fallback behavior.\n *\n * @returns True if external redirects are available (client-side)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function canRedirectExternally(): boolean;","captureError":"/**\n * Capture error with Sentry\n * @param error Error to capture\n * @param context Additional context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function captureError(error: Error, context?: Record<string, any>): void;","captureErrorToSentry":"/**\n * Captures an error to Sentry with additional context\n * Works on both client (@sentry/react) and server (@sentry/node)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param error - The error to capture\n * @param source - The detected error source\n * @param context - Additional context to include\n */\ndeclare function captureErrorToSentry(error: DoNotDevError, source: ErrorSource, context?: Record<string, any>): void;","captureMessage":"/**\n * Capture message with Sentry\n * @param message Message to capture\n * @param level Log level\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function captureMessage(message: string, level?: 'info' | 'warning' | 'error'): void;","cleanupSentry":"/**\n * Safely cleans up Sentry resources.\n */\ndeclare function cleanupSentry(): Promise<void>;","clearFeatureCache":"/**\n * Clear feature cache (useful for testing or dynamic config changes)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearFeatureCache(): void;","clearGlobalSingleton":"/**\n * Clear a global singleton. **Only for testing.**\n *\n * @param key - The singleton key to clear\n */\ndeclare function clearGlobalSingleton(key: string): void;","clearLocalStorage":"/**\n * Safe localStorage.clear with error handling\n * @returns Whether the operation was successful\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearLocalStorage(): boolean;","clearPartnerCache":"/**\n * Clear partner cache (useful for testing or when environment variables change)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearPartnerCache(): void;","commonErrorCodeMappings":"/**\n * Common error code mappings for most services\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const commonErrorCodeMappings: Record<string, ErrorCode>;","compactToISOString":"/**\n * Convert compact date format (YYYYMMDD:HHMM) to ISO string\n * Format: 20251225:0000 → 2025-12-25T00:00:00.000Z\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param compactDate - Date in YYYYMMDD:HHMM format\n * @returns ISO string representation\n * @throws Error if format is invalid\n */\ndeclare function compactToISOString(compactDate: string): string;","configureProviders":"/**\n * Configure all providers for the framework.\n * Must be called once at app startup, before any component uses `useCrud`, auth, or storage.\n * Typically called from a dedicated module (e.g. `config/providers.ts`) imported by main.tsx.\n *\n * @param providers - At least `crud`; optionally `auth`, `storage`, `serverAuth`, `callable`\n * @throws Does not throw; logs a warning if called more than once (use `resetProviders()` in tests)\n */\ndeclare function configureProviders(providers: DndevProviders): void;","cooldown":"/**\n * Creates a function that executes once and then ignores subsequent calls\n * for the specified amount of time.\n *\n * @param func The function to rate-limit\n * @param wait The number of milliseconds to cool down\n * @returns A rate-limited function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function cooldown<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;","createAsyncSingleton":"/**\n * Creates an async singleton getter function for async factory functions\n *\n * @param asyncFactory - Async factory function that returns a Promise<T>\n * @returns Function that returns a Promise<T> for the singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createAsyncSingleton<T>(asyncFactory: () => Promise<T>): () => Promise<T>;","createErrorHandler":"/**\n * Creates an error handler that converts any type of error to DoNotDevError format\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param config Configuration for the error handler\n * @returns A function that converts errors to DoNotDevErrors\n */\ndeclare function createErrorHandler(config: ErrorHandlerConfig): ErrorHandlerFunction;","createMetadata":"/**\n * Creates metadata for a new document with audit trail information\n *\n * **Purpose:** Provides standardized metadata for database documents\n * including creation timestamps and user tracking for audit purposes.\n *\n * **Features:**\n * - ISO timestamp format for consistency\n * - User ID tracking for audit trails\n * - Both creation and update fields initialized\n * - Ready for immediate database insertion\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param userId - The ID of the user creating the document\n * @returns Metadata object with timestamps and user IDs\n *\n * @example\n * ```typescript\n * const user = { id: 'user123', name: 'John Doe' };\n * const metadata = createMetadata(user.id);\n *\n * const newPost = {\n * title: 'My Post',\n * content: 'Post content...',\n * ...metadata\n * };\n *\n * await firestore.collection('posts').add(newPost);\n * ```\n */\ndeclare function createMetadata(userId: string): {\n createdAt: string;\n updatedAt: string;\n createdById: string;\n updatedById: string;\n}","createMethodProxy":"/**\n * Creates a method proxy for a singleton getter\n * This allows direct method access without calling getInstance() first\n *\n * @param getInstance - Singleton getter function\n * @param methods - Array of method names to proxy\n * @returns Proxy object with direct method access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createMethodProxy<T extends object>(getInstance: () => T, methods: (keyof T)[]): T;","createSingleton":"/**\n * Creates a singleton getter function for a class or factory function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param ClassOrFactory - Class constructor or factory function\n * @param args - Constructor arguments (if ClassOrFactory is a class)\n * @returns Function that returns the singleton instance\n */\ndeclare function createSingleton<T>(ClassOrFactory: (new (...args: any[]) => T) | (() => T), ...args: any[]): () => T;","createSingletonWithParams":"/**\n * Creates a singleton getter function for a class with parameters\n * This version allows passing parameters to the constructor\n *\n * @param ClassOrFactory - Class constructor or factory function\n * @returns Function that returns the singleton instance with parameters\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createSingletonWithParams<T>(ClassOrFactory: (new (...args: any[]) => T) | ((...args: any[]) => T)): (...args: any[]) => T;","createViewportHandler":"/**\n * Create a viewport handler instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createViewportHandler(options?: ViewportDetectionOptions): ViewportHandler;","debounce":"/**\n * Creates a debounced function that delays invoking the provided function\n * until after the specified wait time has elapsed since the last invocation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param func The function to debounce\n * @param wait The number of milliseconds to delay\n * @param immediate Whether to invoke the function on the leading edge instead of trailing\n * @returns A debounced version of the function\n */\ndeclare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean): (...args: Parameters<T>) => void;","debugPlatformDetection":"/**\n * Debug platform detection\n * Development helper to log platform detection details\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function debugPlatformDetection(): void;","decryptData":"/**\n * Decrypt data using AES-GCM\n * @param encryptedData Encrypted string (base64)\n * @returns Promise resolving to decrypted data (parsed from JSON)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function decryptData(encryptedData: string): Promise<string | object | number | boolean | null>;","delay":"/**\n * Execute a function after a specified delay\n *\n * @param func Function to execute\n * @param delay Delay in milliseconds\n * @returns A function that when called will execute after the delay\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function delay<T extends (...args: any[]) => any>(func: T, delay?: number): (...args: Parameters<T>) => void;","deleteCookie":"/**\n * Delete a cookie by setting it to expire in the past\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function deleteCookie(name: string, options?: Partial<CookieOptions>): void;","detectBrowser":"/**\n * Detect browser information from user agent and navigator\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectBrowser(): BrowserInfo;","detectErrorSource":"/**\n * Detects the source of an error based on its properties and structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param error - The error to analyze\n * @returns The detected error source\n */\ndeclare function detectErrorSource(error: unknown): ErrorSource;","detectFeatures":"/**\n * Detect feature support\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectFeatures(): FeatureSupport;","detectPlatform":"/**\n * Simple platform detection\n *\n * Detects the current platform (Vite or Next.js) and environment mode.\n * Provides cached results for performance.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectPlatform(): Platform;","detectPlatformInfo":"/**\n * Detailed platform detection with unified config integration\n * Cached after first call for optimal performance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectPlatformInfo(): PlatformInfo;","detectStorageError":"/**\n * Detect storage error type from exception\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectStorageError(error: unknown): StorageError;","encryptData":"/**\n * Encrypt data using AES-GCM\n * @param data Data to encrypt (will be JSON stringified)\n * @returns Promise resolving to encrypted string (base64)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function encryptData(data: string | object | number | boolean): Promise<string>;","ensureSpreadable":"/**\n * Creates a spreadable object from validated data, ensuring it can be safely spread.\n * Use this when you need to spread validated data and add additional properties (like `id`).\n *\n * @param data - The validated data (should be an object)\n * @returns A Record that can be safely spread\n *\n * @example\n * ```typescript\n * const parsed = validateWithSchema(schema, data, 'MyAdapter.get');\n * return { ...ensureSpreadable(parsed), id } as T;\n * ```\n */\ndeclare function ensureSpreadable<T>(data: T): Record<string, unknown>;","evaluateCondition":"/**\n * Evaluate a condition expression (node or group) against form values.\n *\n * @param condition - The condition expression or ConditionBuilder to evaluate\n * @param formValues - Current form values (flat object or nested for workflows)\n * @returns Whether the condition is satisfied\n *\n * @example\n * ```typescript\n * const cond = when('status').equals('active');\n * const result = evaluateCondition(cond, { status: 'active' }); // true\n * ```\n */\ndeclare function evaluateCondition(condition: ConditionInput, formValues: Record<string, unknown>): boolean;","evaluateFieldConditions":"/**\n * Evaluate all conditions for a field and return the computed state.\n *\n * @param behavior - The ConditionalBehavior from the field definition\n * @param formValues - Current form values\n * @returns ConditionResult with visible/disabled/required/readonly booleans\n */\ndeclare function evaluateFieldConditions(behavior: ConditionalBehavior | undefined, formValues: Record<string, unknown>): ConditionResult;","filterVisibleFields":"/**\n * Filters the fields of a data object based on visibility rules defined\n * in a Valibot schema and the user's role. When options (documentData, uid, ownership)\n * are provided, fields with visibility: 'owner' are included only if uid matches\n * one of ownership.ownerFields in documentData.\n *\n * @template T - The expected type of the data object\n * @param data - The document data object to filter\n * @param schema - The Valibot schema with visibility metadata on each field\n * @param userRole - The current user's role (guest, user, admin, super)\n * @param options - Optional: documentData, uid, ownership for owner-level visibility\n * @returns A new object containing only the fields visible to the user\n */\ndeclare function filterVisibleFields<T extends Record<string, any>>(data: T | null | undefined, schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>, userRole: UserRole, options?: FilterVisibleFieldsOptions): Partial<T>;","formatCookieList":"/**\n * Get human-readable cookie list for a category\n */\ndeclare function formatCookieList(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): string;","formatCurrency":"/**\n * Format currency value with proper locale based on currency code\n *\n * @param value - Numeric value to format\n * @param currencyCode - ISO 4217 currency code\n * @param options - Additional Intl.NumberFormat options\n * @returns Formatted currency string\n *\n * @example\n * ```typescript\n * formatCurrency(12345, 'EUR') // → \"12 345 €\"\n * formatCurrency(12345, 'USD') // → \"$12,345\"\n * ```\n */\ndeclare function formatCurrency(value: number | null | undefined, currencyCode: string, options?: Intl.NumberFormatOptions): string;","formatDate":"/**\n * Format date to localized string with preset or custom options\n * Uses native Intl.DateTimeFormat for proper locale-aware formatting.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, FirestoreTimestamp, or null/undefined)\n * @param locale - Locale string (e.g., \"en\", \"fr\", \"de\"). Defaults to \"en\"\n * @param format - Preset name or custom options. Defaults to \"long\"\n * @returns Localized formatted date string, or empty string if date is invalid\n *\n * @example\n * formatDate('2025-05-05T00:00:00.000Z', 'en', 'full') // \"Monday, May 5, 2025\"\n * formatDate('2025-05-05T00:00:00.000Z', 'fr', 'long') // \"5 mai 2025\"\n * formatDate('2025-05-05T14:30:00.000Z', 'en', 'datetime') // \"May 5, 2025, 02:30 PM\"\n * formatDate(new Date(), 'de', { month: 'short', day: 'numeric' }) // \"5. Mai\"\n */\ndeclare function formatDate(date: DateValue | number | string | null | undefined, locale?: string, format?: DateFormatPreset | DateFormatOptions): string;","formatRelativeTime":"/**\n * Format a date as relative time (e.g., \"5 minutes ago\", \"in 2 hours\")\n * Uses native Intl.RelativeTimeFormat for locale-aware formatting.\n * Falls back to formatDate for dates older than threshold.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, or null/undefined)\n * @param locale - Locale string (e.g., \"en\", \"fr\", \"de\"). Defaults to \"en\"\n * @param options - Configuration options\n * @param options.style - \"long\" | \"short\" | \"narrow\". Defaults to \"long\"\n * @param options.numeric - \"always\" | \"auto\". Defaults to \"auto\" (allows \"yesterday\" instead of \"1 day ago\")\n * @param options.fallbackThreshold - Seconds after which to fall back to formatDate. Defaults to 1 week\n * @returns Localized relative time string or formatted date for old dates\n */\ndeclare function formatRelativeTime(date: DateValue | number | null | undefined, locale?: string, options?: {\n style?: 'long' | 'short' | 'narrow';\n numeric?: 'always' | 'auto';\n fallbackThreshold?: number;\n}","generateCodeChallenge":"/**\n * Generate a code challenge from a code verifier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param verifier The code verifier\n * @returns Promise resolving to Base64URL-encoded code challenge\n */\ndeclare function generateCodeChallenge(verifier: string): Promise<string>;","generateCodeVerifier":"/**\n * Generate a cryptographically random code verifier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Base64URL-encoded code verifier\n */\ndeclare function generateCodeVerifier(): string;","generateCompatibilityReport":"/**\n * Generate compatibility report\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function generateCompatibilityReport(): CompatibilityReport;","generateEncryptionKey":"/**\n * Generate a secure, non-extractable encryption key.\n *\n * The key is marked `extractable: false` so the raw key material can never\n * be exported by JavaScript code, defeating the C-OLD-2 vulnerability.\n *\n * @returns Promise resolving to the generated key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function generateEncryptionKey(): Promise<CryptoKey>;","generateFirestoreRuleCondition":"/**\n * Generates a Firestore rule condition for read and update based on ownership config.\n * Use the returned string in firestore.rules like:\n *\n * allow read, update: if <generated>;\n *\n * The condition is: (publicCondition AND ...) OR request.auth.uid == resource.data.<ownerField1> OR ...\n *\n * @param ownership - Entity ownership config (ownerFields + optional publicCondition array)\n * @returns Rule condition expression string\n */\ndeclare function generateFirestoreRuleCondition(ownership: EntityOwnershipConfig): string;","generatePKCEPair":"/**\n * Generate a PKCE pair (code verifier and challenge)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Promise resolving to PKCE pair\n */\ndeclare function generatePKCEPair(): Promise<{\n codeVerifier: string;\n codeChallenge: string;\n}","generateUUID":"/**\n * Generate a cryptographically random UUID v4.\n *\n * Uses `crypto.getRandomValues()` (universal) instead of `crypto.randomUUID()`\n * (Safari 15.4+ only) for maximum browser compatibility.\n *\n * @returns UUID v4 string (e.g. \"550e8400-e29b-41d4-a716-446655440000\")\n *\n * @version 0.1.0\n * @since 0.1.0\n */\ndeclare function generateUUID(): string;","getActiveCookies":"/**\n * Get all cookies being used based on detected features\n */\ndeclare function getActiveCookies(): CookieInfo[];","getAppShortName":"/**\n * Get the application short name with proper fallback\n * Priority: app.shortName prop → app.name prop → default fallback\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param appConfig - Optional app metadata object\n * @param fallback - Default fallback value (default: 'App')\n * @returns The resolved app short name\n */\ndeclare function getAppShortName(appConfig?: AppMetadata, fallback?: string): string;","getAssetsConfig":"/**\n * Get assets configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAssetsConfig(): unknown;","getAuthDomain":"/**\n * Get Firebase Auth domain (host only)\n *\n * Firebase Console always returns `projectId.firebaseapp.com` in SDK config,\n * but for custom domains in production, we need `yourdomain.com`.\n *\n * Logic:\n * - If APP_URL is set and not localhost → use APP_URL hostname (production custom domain)\n * - Otherwise → use FIREBASE_AUTH_DOMAIN (localhost/dev uses Firebase default)\n *\n * - Normalizes by stripping protocol and trailing slashes\n * - Lowercases the host\n * - No memoization; computed on each call similar to isDev()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthDomain(): string;","getAuthMethod":"/**\n * Get auth method (single source of truth)\n * - If method is provided: use it\n * - If method is null/undefined: isDev() ? 'popup' : 'redirect'\n * @param method - Auth method ('popup' or 'redirect')\n * @returns 'popup' or 'redirect'\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthMethod(method?: AuthMethod | null): AuthMethod;","getAuthPartnerConfig":"/**\n * Get auth partner configuration (only if valid)\n * Lazily validates the partner before returning configuration\n *\n * @param partnerId Partner identifier\n * @returns Auth partner configuration or undefined if not found/invalid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthPartnerConfig(partnerId: AuthPartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getAuthPartnerIdByFirebaseId":"/**\n * Get AuthPartnerId from Firebase provider ID\n * Uses AUTH_PARTNERS schema as single source of truth (DRY)\n *\n * @param firebaseProviderId - Firebase provider ID (e.g., 'google.com', 'github.com')\n * @returns AuthPartnerId or null if not found\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthPartnerIdByFirebaseId(firebaseProviderId: string): AuthPartnerId | null;","getAvailableFeatures":"/**\n * Get all available features\n * @returns Array of available feature names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableFeatures(): FrameworkFeature[];","getBrowserRecommendations":"/**\n * Get browser recommendations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBrowserRecommendations(): string[];","getConditionDependencies":"/**\n * Extract all field names referenced by a condition expression.\n * Useful for building dependency graphs and optimizing re-evaluation.\n *\n * @param condition - The condition expression or builder to analyze\n * @returns Set of field names (may include dot-notated paths)\n */\ndeclare function getConditionDependencies(condition: ConditionExpression | ConditionBuilder): Set<string>;","getConfigSection":"/**\n * Get specific config section\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getConfigSection<T>(section: keyof DndevFrameworkConfig): T | null;","getConfigSource":"/**\n * Get config source information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getConfigSource(): {\n platform: string;\n source: string;\n available: boolean;\n}","getCookie":"/**\n * Get a cookie value by name\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCookie(name: string): string | null;","getCookieExamples":"/**\n * Get cookie examples for banner display (short version)\n */\ndeclare function getCookieExamples(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): string;","getCookiesByCategory":"/**\n * Get cookies by category\n */\ndeclare function getCookiesByCategory(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): CookieInfo[];","getCurrencyLocale":"/**\n * Returns the locale for a currency code (for Intl formatting).\n * Unknown codes → 'en-US'.\n *\n * @param currencyCode - ISO 4217 currency code (e.g. 'EUR', 'USD')\n * @returns Locale string\n */\ndeclare function getCurrencyLocale(currencyCode: string): string;","getCurrencySymbol":"/**\n * Returns the symbol for a currency code (e.g. EUR → '€').\n * Unknown codes → code as-is (no validation).\n *\n * @param currencyCode - ISO 4217 currency code or any string\n * @returns Symbol string or the code itself\n */\ndeclare function getCurrencySymbol(currencyCode: string): string;","getCurrentOrigin":"/**\n * Get current origin for redirect URL construction\n *\n * SSR-safe way to get the current origin for building redirect URLs.\n *\n * @returns Current origin or null if not available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCurrentOrigin(): string | null;","getCurrentTimestamp":"/**\n * Get current timestamp as ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Current timestamp in ISO string format\n */\ndeclare function getCurrentTimestamp(): string;","getDndevConfig":"/**\n * Get DnDev config data synchronously\n *\n * Data is populated at build time and immediately available at runtime.\n * No async needed - config is always there when the app starts.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getDndevConfig(): DndevFrameworkConfig | null;","getEnabledAuthPartners":"/**\n * Get enabled auth partners from environment variables\n * Computed once on first call, then cached permanently (like isDev/isClient)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Array of enabled auth partners\n */\ndeclare function getEnabledAuthPartners(): AuthPartnerId[];","getEnabledOAuthPartners":"/**\n * Get enabled OAuth partners from environment variables\n * @returns Array of enabled OAuth partners\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getEnabledOAuthPartners(): OAuthPartnerId[];","getEncryptionKey":"/**\n * Get or create the encryption key.\n *\n * Keys are stored in IndexedDB as native CryptoKey objects (not exported raw\n * bytes), so the key material is never written to localStorage or any\n * JavaScript-accessible string.\n *\n * @returns Promise resolving to the encryption key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getEncryptionKey(): Promise<CryptoKey>;","getFeatureSummary":"/**\n * Get feature availability summary\n * @returns Object with feature availability status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getFeatureSummary(): Record<FrameworkFeature, boolean>;","getGlobalSingleton":"/**\n * Get or create a singleton backed by `globalThis.__DNDEV_SINGLETONS__`.\n *\n * Use this for singletons that must be shared across packages or survive\n * bundler chunk splits (Vite pre-bundling, esbuild code-splitting, HMR).\n *\n * Module-level `let` singletons break when a bundler evaluates the same\n * module in two separate chunks - each gets its own `let`. `globalThis`\n * is process-wide and survives all of that.\n *\n * **When to use:**\n * - Registries shared between consumer code and framework internals\n * (e.g. FieldRegistry, providers, auth instance)\n * - Any singleton where `registerX()` happens in one package and\n * `getX()` happens in another\n *\n * **When NOT to use:**\n * - Server-only singletons (functions/, tooling/, mcp-server/) - no chunk splits\n * - File-local caches that are only read in the same file\n *\n * @param key - Unique key for this singleton (e.g. 'field-registry')\n * @param factory - Factory function called once to create the instance\n * @returns The singleton instance (existing or newly created)\n *\n * @example\n * ```typescript\n * // In FieldRegistry.ts\n * import { getGlobalSingleton } from '@donotdev/core';\n *\n * export function getFieldRegistry(): FieldRegistry {\n * return getGlobalSingleton('field-registry', () => new FieldRegistry());\n * }\n *\n * // In providers.ts\n * let _providers = getGlobalSingleton('providers', () => ({ current: null }));\n * ```\n */\ndeclare function getGlobalSingleton<T>(key: string, factory: () => T): T;","getI18nConfig":"/**\n * Get i18n configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getI18nConfig(): I18nPluginConfig | null;","getListCardFieldNames":"/**\n * SSOT for card field resolution. Returns a flat, deduplicated field name list.\n *\n * Fallback chain: `listCardFields` → `listFields` → all entity field keys.\n *\n * - `string[]` → returned as-is\n * - `ListCardLayout` → all slot arrays merged (deduplicated)\n * - `undefined` → falls back to `listFields`, then `Object.keys(fields)`\n */\ndeclare function getListCardFieldNames(entity: {\n listCardFields?: string[] | ListCardLayout;\n listFields?: string[];\n fields?: Record<string, unknown>;\n}","getLocalStorageItem":"/**\n * Safe localStorage.getItem with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param key - localStorage key\n * @param defaultValue - Default value if key doesn't exist or error occurs\n * @returns Stored value or default value\n */\ndeclare function getLocalStorageItem<T = string>(key: string, defaultValue: T): T;","getNextEnvVar":"/**\n * Get Next.js environment variable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getNextEnvVar(name: string): string | undefined;","getOAuthClientId":"/**\n * Get OAuth client ID from environment variables\n *\n * @param partnerId Partner identifier\n * @returns Client ID or undefined if not configured\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthClientId(partnerId: OAuthPartnerId): string | undefined;","getOAuthPartnerConfig":"/**\n * Get OAuth partner configuration (only if valid)\n * Lazily validates the partner before returning configuration\n *\n * @param partnerId Partner identifier\n * @returns OAuth partner configuration or undefined if not found/invalid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthPartnerConfig(partnerId: OAuthPartnerId): {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n}","getOAuthRedirectUri":"/**\n * Get OAuth redirect URI from environment variables or use default\n * Simple, secure approach with single source of truth\n *\n * @param partnerId Partner identifier\n * @returns Redirect URI to use for OAuth flow\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthRedirectUri(partnerId: OAuthPartnerId): string;","getOAuthRedirectUrl":"/**\n * Get the OAuth redirect URL used by the framework.\n *\n * Single source of truth for OAuth callback endpoint construction.\n * Reads from VITE_APP_URL/NEXT_PUBLIC_APP_URL env var (set at build time from appConfig.app.url).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param baseUrl - Optional base URL. If not provided, reads from env var (set from appConfig.app.url at build time).\n * @returns Absolute OAuth redirect URL (e.g., 'https://example.com/oauth/callback')\n */\ndeclare function getOAuthRedirectUrl(baseUrl?: string): string;","getPartnerCacheStatus":"/**\n * Get cache status for debugging\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getPartnerCacheStatus(): {\n authPartnersCached: boolean;\n oauthPartnersCached: boolean;\n authPartners: (\"google\" | \"apple\" | \"discord\" | \"emailLink\" | \"facebook\" | \"github\" | \"linkedin\" | \"microsoft\" | \"password\" | \"reddit\" | \"spotify\" | \"twitch\" | \"twitter\" | \"yahoo\")[] | null;\n oauthPartners: (\"google\" | \"discord\" | \"github\" | \"linkedin\" | \"reddit\" | \"spotify\" | \"twitch\" | \"twitter\" | \"notion\" | \"slack\" | \"medium\" | \"mastodon\" | \"youtube\" | \"supabase\" | \"vercel\")[] | null;\n}","getPartnerConfig":"/**\n * Get partner configuration based on ID, regardless of type\n *\n * @param partnerId Partner identifier (auth or OAuth)\n * @returns Partner configuration or undefined if not found\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getPartnerConfig(partnerId: PartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getPlatformEnvVar":"/**\n * Platform-agnostic environment variable access\n * Handles both Vite (VITE_) and Next.js (NEXT_PUBLIC_) naming conventions\n *\n * Forgiving API: Accepts both prefixed and unprefixed names\n * - 'VITE_APP_VERSION' or 'APP_VERSION' both work for Vite\n * - 'NEXT_PUBLIC_APP_URL' or 'APP_URL' both work for Next.js\n *\n * @version 0.1.0\n * @author AMBROISE PARK Consulting\n * @param baseName - The environment variable name (with or without prefix, e.g., 'COMPANY_NAME' or 'VITE_COMPANY_NAME')\n * @returns The value or undefined if not found\n */\ndeclare function getPlatformEnvVar(baseName: string, platform?: Platform): string | undefined;","getProvider":"/**\n * Get a configured provider by key.\n *\n * @param key - The provider key ('crud', 'auth', 'storage', 'serverAuth', 'callable')\n * @returns The provider instance\n * @throws If provider not configured\n */\ndeclare function getProvider<K extends keyof DndevProviders>(key: K): NonNullable<DndevProviders[K]>;","getProviderColor":"/**\n * Returns the primary brand color associated with the specified authentication provider.\n * Uses schema discovery to support all AUTH_PARTNERS automatically.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * If the provider color is not found, it returns a default color.\n *\n * @param {AuthPartnerId} provider - The identifier for the authentication provider (e.g., 'google', 'facebook').\n * @returns {string} The brand color as a hexadecimal string (e.g., '#1877F2').\n */\ndeclare function getProviderColor(provider: AuthPartnerId): string;","getRoleFromClaims":"/**\n * Extract canonical role from auth claims\n *\n * Handles:\n * - 'role' claim (primary)\n * - Boolean flags (isAdmin, isSuper) (legacy/convenience)\n * - Fallbacks to USER_ROLES.USER\n *\n * @param claims - Auth claims object\n * @returns Canonical role string\n */\ndeclare function getRoleFromClaims(claims: Record<string, any>): string;","getRoutesConfig":"/**\n * Get routes configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRoutesConfig(): unknown;","getStorageManager":"declare const getStorageManager: () => StorageManager;","getThemesConfig":"/**\n * Get themes configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getThemesConfig(): ThemesPluginConfig | null;","getTokenManager":"declare const getTokenManager: () => TokenManager;","getValidAuthPartnerConfig":"/**\n * Dynamic config getter with validation (no static structure recreation)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidAuthPartnerConfig(partnerId: AuthPartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getValidAuthPartnerIds":"/**\n * Get only valid auth partner IDs (pure discovery, no static structure)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidAuthPartnerIds(): AuthPartnerId[];","getValidOAuthPartnerConfig":"/**\n * Dynamic config getter with validation (no static structure recreation)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidOAuthPartnerConfig(partnerId: OAuthPartnerId): {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n}","getValidOAuthPartnerIds":"/**\n * Get only valid OAuth partner IDs (pure discovery, no static structure)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidOAuthPartnerIds(): OAuthPartnerId[];","getVisibleFields":"/**\n * Extracts the names of all fields from a Valibot object schema that should be visible\n * based on the user's role and optional ownership context (for visibility: 'owner').\n *\n * @param schema - The Valibot schema, expected to be an object schema (v.object)\n * @param userRole - The current user's role (guest, user, admin, super)\n * @param options - Optional: documentData, uid, ownership for owner-level visibility\n * @returns An array of visible field names\n */\ndeclare function getVisibleFields(schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>, userRole: UserRole, options?: GetVisibleFieldsOptions): string[];","getVisibleItems":"/**\n * Get visible items from a container\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getVisibleItems(container: Element, threshold?: number): Set<number>;","getViteEnvVar":"/**\n * Get Vite environment variable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getViteEnvVar(name: string): string | undefined;","getWeekFromISOString":"/**\n * Calculate week number from ISO date string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param isoString - ISO date string\n * @returns Week number and year as string (e.g., \"Week 15, 2024\")\n */\ndeclare function getWeekFromISOString(isoString: string): string;","globalEmitter":"/**\n * Global event emitter instance for framework-wide event communication\n *\n * This singleton instance is used throughout the framework for:\n * - Cross-component communication\n * - Feature initialization coordination\n * - State synchronization\n * - Error propagation\n *\n * **Usage:**\n * ```typescript\n * import { globalEmitter } from '@donotdev/utils';\n *\n * // Emit framework events\n * globalEmitter.emit('FEATURE_INITIALIZED', { feature: 'auth' });\n *\n * // Listen for framework events\n * globalEmitter.on('FEATURE_INITIALIZED', (data) => {\n * console.log('Feature initialized:', data);\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const globalEmitter: EventEmitter;","handleError":"/**\n * Universal error handler for DoNotDev applications\n *\n * Handles errors from any source, converting them to standardized DoNotDevError\n * objects, logging appropriately, and optionally adding to UI notification system.\n *\n * @param error - The original error from any source\n * @param optionsOrMessage - Optional configuration or user-friendly message\n * @returns Standardized DoNotDevError\n *\n * @example\n * try {\n * await fetchData();\n * } catch (error) {\n * throw handleError(error, 'Failed to fetch data');\n * }\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function handleError(error: unknown, optionsOrMessage?: HandleErrorOptions | string): DoNotDevError;","hasOptionalCookies":"/**\n * Check if app uses any optional cookies (functional/analytics/marketing)\n */\ndeclare function hasOptionalCookies(): boolean;","hasProvider":"/**\n * Check if a provider is configured.\n *\n * @param key - The provider key to check\n * @returns true if the provider is configured\n */\ndeclare function hasProvider(key: keyof DndevProviders): boolean;","hasRestrictedVisibility":"/**\n * Returns true if any field in the schema declares a visibility level more\n * restrictive than 'guest' (i.e. 'user', 'owner', 'admin', 'super', 'technical', 'hidden').\n * Used by CrudService to gate direct adapter access for non-public entities.\n *\n * Handles wrapped schemas (pipe, nullable, optional, union) by traversing the\n * schema tree to find the underlying object entries. Returns false for schemas\n * that cannot be introspected (lazy, custom).\n *\n * @param schema - A Valibot schema or dndevSchema to inspect\n * @returns true if any field has restricted visibility\n *\n * @example\n * // Public entity — all fields guest visibility\n * hasRestrictedVisibility(PublicPostSchema) // false\n *\n * @example\n * // Private entity — email field is 'user' visibility\n * hasRestrictedVisibility(UserProfileSchema) // true\n *\n * @version 0.1.0\n * @since 0.0.1\n */\ndeclare function hasRestrictedVisibility(schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>): boolean;","hasRoleAccess":"/**\n\n * Check if a user role has access to a required role based on hierarchy.\n\n *\n\n * Uses a 4-level hierarchy where higher roles inherit access to lower roles:\n\n * - Super (level 3) can access super, admin, user, and guest routes\n\n * - Admin (level 2) can access admin, user, and guest routes\n\n * - User (level 1) can access user and guest routes\n\n * - Guest (level 0) can access guest routes only\n\n *\n\n * Unknown roles default to level -1 (denied) for security.\n\n * Unknown required roles default to Infinity (always denied).\n\n *\n\n * @param userRole - The user's current role (e.g., 'super', 'admin', 'user', 'guest')\n\n * @param requiredRole - The role required to access the resource\n\n * @returns True if user has sufficient role level, false otherwise\n\n *\n\n * @example\n\n * ```typescript\n\n * // Admin accessing user route\n\n * hasRoleAccess('admin', 'user') // true\n\n *\n\n * // User accessing admin route\n\n * hasRoleAccess('user', 'admin') // false\n\n *\n\n * // Super accessing admin route\n\n * hasRoleAccess('super', 'admin') // true\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n */\ndeclare function hasRoleAccess(userRole: string | undefined, requiredRole: string): boolean;","hasTierAccess":"/**\n\n * Check if a user tier has access to a required tier based on hierarchy.\n\n *\n\n * Uses tier levels from the provided config (or COMMON_TIER_CONFIGS as fallback).\n\n * Higher tier levels inherit access to lower tier levels.\n\n *\n\n * Unknown tiers default to level -1 (denied) for security.\n\n * Unknown required tiers default to Infinity (always denied).\n\n *\n\n * @param userTier - The user's current tier (e.g., 'pro', 'free', 'ai')\n\n * @param requiredTier - The tier required to access the resource\n\n * @param tierConfig - Optional custom tier configuration. If not provided, uses COMMON_TIER_CONFIGS\n\n * @returns True if user has sufficient tier level, false otherwise\n\n *\n\n * @example\n\n * ```typescript\n\n * // Pro accessing free route\n\n * hasTierAccess('pro', 'free') // true\n\n *\n\n * // Free accessing pro route\n\n * hasTierAccess('free', 'pro') // false\n\n *\n\n * // With custom config\n\n * const customConfig = {\n\n * basic: { features: [], level: 0 },\n\n * premium: { features: [], level: 1 }\n\n * };\n\n * hasTierAccess('premium', 'basic', customConfig) // true\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n */\ndeclare function hasTierAccess(userTier: string | undefined, requiredTier: string, tierConfig?: SubscriptionConfig['tiers']): boolean;","initSentry":"/**\n * Initialize Sentry if configured\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Promise<boolean> - true if Sentry was initialized, false otherwise\n */\ndeclare function initSentry(): Promise<boolean>;","initializeConfig":"/**\n * Initialize config if not available (fallback only)\n * Config should be populated at build time - this is just a safety net\n */\ndeclare function initializeConfig(): DndevFrameworkConfig | null;","initializePlatformDetection":"/**\n * Initialize platform detection and set unified config\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Framework configuration object with platform information\n */\ndeclare function initializePlatformDetection(): DndevFrameworkConfig;","isAuthPartnerEnabled":"/**\n * Check if a partner is enabled for authentication\n *\n * @param partnerId Partner identifier\n * @returns True if the partner is enabled for authentication\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isAuthPartnerEnabled(partnerId: AuthPartnerId): boolean;","isClient":"/**\n * Check if running in client context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in browser/client environment\n */\ndeclare function isClient(): boolean;","isCompactDateString":"/**\n * Check if a string is in compact date format (YYYYMMDD:HHMM)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param value - String to check\n * @returns True if string matches YYYYMMDD:HHMM format\n */\ndeclare function isCompactDateString(value: string): boolean;","isConfigAvailable":"/**\n * Check if config is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isConfigAvailable(): boolean;","isDev":"/**\n * Platform-agnostic development mode check\n * Uses framework's environment access to work in Vite, Next.js, SSR/CSR.\n *\n * Precedence:\n * 1) Vite's import.meta.env.DEV (true when command === 'serve', regardless of mode)\n * 2) Vite's import.meta.env.MODE !== 'production' (handles custom modes like 'test')\n * 3) APP_ENV (framework-level)\n * 4) NODE_ENV (platform-level)\n * Defaults to 'development' when unknown.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isDev(): boolean;","isElementInViewport":"/**\n * Check if element is in viewport\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isElementInViewport(element: Element, threshold?: number): boolean;","isEmailVerificationRequired":"/**\n * Check if email verification is required for the current user\n *\n * @param user - The current user object\n * @returns boolean - true if email verification is required\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isEmailVerificationRequired(user: any): boolean;","isExpo":"/**\n * Check if running on Expo platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Expo\n */\ndeclare function isExpo(): boolean;","isFeatureAvailable":"/**\n * Check if a specific feature is available and configured\n * @param feature The feature to check\n * @returns True if the feature is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isFeatureAvailable(feature: FrameworkFeature): boolean;","isFieldVisible":"/**\n * Determines if a field should be visible based on its visibility setting\n * and the user's role.\n *\n * Uses hasRoleAccess for hierarchical check:\n * - guest < user < admin < super\n *\n * Special cases:\n * - `technical`: Visible to admin and super only (read-only in forms)\n * - `hidden`: Never visible\n * - undefined: Treated as `guest` (visible to all)\n *\n * @param visibility - The field's visibility setting\n * @param userRole - The current user's role\n * @returns True if the field should be visible\n */\ndeclare function isFieldVisible(visibility: Visibility | undefined, userRole: UserRole): boolean;","isIntersectionObserverSupported":"/**\n * Check if IntersectionObserver is supported\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isIntersectionObserverSupported(): boolean;","isLocalStorageAvailable":"/**\n * Check if localStorage is available\n * @returns Whether localStorage is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isLocalStorageAvailable(): boolean;","isNextJs":"/**\n * Check if running on Next.js platform\n * Checks config first (source of truth), then falls back to detection\n * Caches result after first successful detection\n *\n * Enhanced detection for SSR/client reliability:\n * - Checks Next.js environment variables (NEXT_RUNTIME)\n * - Checks Next.js globals (__NEXT_DATA__)\n * - Falls back to config and full platform detection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Next.js\n */\ndeclare function isNextJs(): boolean;","isOAuthPartnerEnabled":"/**\n * Check if a partner is enabled for OAuth API access\n *\n * @param partnerId Partner identifier\n * @returns True if the partner is enabled for OAuth API access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isOAuthPartnerEnabled(partnerId: OAuthPartnerId): boolean;","isPKCESupported":"/**\n * Check if PKCE is supported by the current environment\n * @returns True if PKCE is supported\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isPKCESupported(): boolean;","isPlatform":"/**\n * Check if current platform matches target\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isPlatform(targetPlatform: Platform): boolean;","isReactNative":"/**\n * Check if running on React Native platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on React Native\n */\ndeclare function isReactNative(): boolean;","isServer":"/**\n * Check if running in server context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in Node.js/server environment\n */\ndeclare function isServer(): boolean;","isTest":"/**\n * Check if running in test environment\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in test environment (Jest, etc.)\n */\ndeclare function isTest(): boolean;","isVite":"/**\n * Check if running on Vite platform\n * Checks config first (source of truth), then falls back to detection\n * Caches result after first successful detection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Vite\n */\ndeclare function isVite(): boolean;","isoToCompactString":"/**\n * Convert ISO string to compact date format (YYYYMMDD:HHMM)\n * Format: 2025-12-25T00:00:00.000Z → 20251225:0000\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param isoString - ISO date string\n * @returns Compact date string in YYYYMMDD:HHMM format\n * @throws Error if ISO string is invalid\n */\ndeclare function isoToCompactString(isoString: string): string;","lazyImport":"/**\n * Lazy import with caching\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param importFn - Dynamic import function\n * @param cacheKey - Cache key for this import\n * @returns Cached or fresh import result\n */\ndeclare function lazyImport<T>(importFn: () => Promise<T>, cacheKey: string): Promise<T>;","mapToDoNotDevError":"/**\n * Maps an error from any source to a standardized DoNotDevError\n *\n * This is the central error mapping function that routes errors to the appropriate\n * handler based on the detected source.\n *\n * @param error - The original error\n * @param source - The detected error source\n * @param userMessage - Optional user-friendly message\n * @returns A standardized DoNotDevError\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function mapToDoNotDevError(error: unknown, source: ErrorSource, userMessage?: string): DoNotDevError;","maybeTranslate":"/**\n * Smart translation helper - auto-detects translation keys vs raw strings\n *\n * **How it works:**\n * - If string has no dots/colons → return as-is (plain string)\n * - If string has namespace prefix (e.g. \"purchase:products.x\") → try to translate\n * - If string has dots but no namespace → try to translate (i18next fallback returns original if missing)\n *\n * **Namespace handling:**\n * - \"purchase:products.earlyBird.name\" → translates from purchase namespace\n * - \"products.earlyBird.name\" → translates from current namespace\n * - \"Early Bird Lifetime\" → returns as-is\n *\n * **Use cases:**\n * 1. Simple apps: Pass plain strings, they render as-is\n * 2. i18n apps: Pass translation keys with namespace prefix\n * 3. Edge cases: \"Dr. Smith\" with dot → tries t(), fallback returns original ✅\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Simple app\n * maybeTranslate(t, \"Early Bird Lifetime\") // → \"Early Bird Lifetime\"\n *\n * // i18n app with namespace\n * maybeTranslate(t, \"purchase:products.earlyBird.name\") // → \"Accès Anticipé à Vie\" (if FR)\n *\n * // i18n app without namespace\n * maybeTranslate(t, \"products.earlyBird.name\") // → \"Accès Anticipé à Vie\" (if FR)\n *\n * // Missing translation\n * maybeTranslate(t, \"products.missing.key\") // → \"products.missing.key\" (debug!)\n * ```\n */\ndeclare function maybeTranslate(t: any, value?: string): string;","normalizeToISOString":"/**\n * Normalize any date value to ISO string\n * Handles Date objects, ISO strings, compact format (YYYYMMDD:HHMM), timestamps (numbers), and Firestore Timestamps\n * This is the single source of truth for date normalization across the entire framework\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value in any format (Date, string, number, FirestoreTimestamp)\n * @returns ISO string representation\n * @throws Error if date is invalid\n */\ndeclare function normalizeToISOString(date: DateValue | number | null | undefined): string;","observeElement":"/**\n * Observe an element with intersection observer\n *\n * @param element - Element to observe\n * @param callback - Callback when intersection changes\n * @param options - Intersection observer options\n * @returns Cleanup function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function observeElement(element: Element, callback: IntersectionObserverCallback, options?: IntersectionObserverOptions): CleanupFunction;","parseAcceptLanguage":"/**\n * Language codes of an `Accept-Language` header, most preferred first\n * (`fr-FR,fr;q=0.9,en;q=0.8` → `['fr-FR', 'fr', 'en']`).\n */\ndeclare function parseAcceptLanguage(header: string | null | undefined): string[];","parseDate":"/**\n * Leniently parse any date value to ISO string.\n * Accepts Date objects, ISO strings, timestamps, Firestore Timestamps, and common date formats.\n * Returns undefined for invalid/unparseable dates (never throws).\n *\n * Use this for form inputs, API responses, or any external data where format is uncertain.\n * For strict validation, use normalizeToISOString() which throws on invalid input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param value - Any value that might be a date\n * @returns ISO string if parseable, undefined otherwise\n *\n * @example\n * parseDate(new Date()) // \"2025-12-28T10:30:00.000Z\"\n * parseDate('2025-12-28') // \"2025-12-28T00:00:00.000Z\"\n * parseDate('Dec 28, 2025') // \"2025-12-28T00:00:00.000Z\"\n * parseDate(1735384200000) // \"2025-12-28T10:30:00.000Z\"\n * parseDate({ toDate: () => new Date() }) // \"2025-12-28T10:30:00.000Z\" (Firestore)\n * parseDate('not a date') // undefined\n * parseDate(null) // undefined\n */\ndeclare function parseDate(value: unknown): string | undefined;","parseDateToNoonUTC":"/**\n * Convert date-only string to ISO with time set to noon UTC.\n * Useful for date inputs where you want to avoid timezone edge cases.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param dateString - Date string (e.g., \"2025-12-28\")\n * @returns ISO string with time set to 12:00:00.000Z, or undefined if invalid\n *\n * @example\n * parseDateToNoonUTC('2025-12-28') // \"2025-12-28T12:00:00.000Z\"\n */\ndeclare function parseDateToNoonUTC(dateString: string): string | undefined;","readCookieValue":"/**\n * Value of one cookie in a `Cookie` header string (`a=1; b=2`).\n *\n * @returns The decoded value, or `null` when the cookie is absent\n */\ndeclare function readCookieValue(cookieHeader: string | null | undefined, name: string): string | null;","redirectToExternalUrl":"/**\n * Safely redirect to an external URL\n *\n * SSR-safe utility for redirecting to external URLs (Stripe, OAuth providers, etc.)\n * Handles validation, error cases, and provides proper error feedback.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param url - External URL to redirect to\n * @param options - Redirect options\n * @returns Promise that resolves when redirect is initiated\n *\n * @example\n * ```tsx\n * try {\n * await redirectToExternalUrl('https://checkout.stripe.com/pay/...');\n * } catch (error) {\n * // Handle redirect failure\n * handleError(error, {\n * userMessage: 'Failed to redirect to payment page',\n * showNotification: true,\n * });\n * }\n * ```\n */\ndeclare function redirectToExternalUrl(url: string, options?: {\n /** Whether to open in new tab instead of redirecting */\n openInNewTab?: boolean;\n /** Whether to validate URL format */\n validateUrl?: boolean;\n}","redirectToExternalUrlWithErrorHandling":"/**\n * Safely redirect to an external URL with automatic error handling\n *\n * Convenience function that automatically handles errors with toast notifications.\n * Use this when you want automatic error feedback without manual error handling.\n *\n * @param url - External URL to redirect to\n * @param options - Redirect options\n * @param errorMessage - Custom error message for toast\n *\n * @example\n * ```tsx\n * // Automatic error handling with toast\n * await redirectToExternalUrlWithErrorHandling(\n * 'https://checkout.stripe.com/pay/...',\n * {},\n * 'Failed to redirect to payment page'\n * );\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function redirectToExternalUrlWithErrorHandling(url: string, options?: Parameters<typeof redirectToExternalUrl>[1], errorMessage?: string): Promise<void>;","removeLocalStorageItem":"/**\n * Safe localStorage.removeItem with error handling\n * @param key - localStorage key\n * @returns Whether the operation was successful\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function removeLocalStorageItem(key: string): boolean;","resetProviders":"/**\n * Reset all providers. **Only for testing.**\n */\ndeclare function resetProviders(): void;","resolveAppConfig":"/**\n * Resolve complete app metadata with all fallbacks\n *\n * @version 0.1.0\n * @author AMBROISE PARK Consulting\n * @param appConfig - Optional app metadata object\n * @returns Complete resolved app metadata\n */\ndeclare function resolveAppConfig(appConfig?: AppMetadata): Required<Omit<AppMetadata, 'footer'>> & {\n footer?: AppMetadata['footer'];\n}","resolveLanguage":"/**\n * The language to render in.\n *\n * @param supported - Language codes the app ships\n * @param fallback - App fallback language (used when nothing else matches)\n * @param stored - The visitor's stored choice (language cookie), if any\n * @param preferred - The visitor's browser languages, most preferred first\n */\ndeclare function resolveLanguage({ supported, fallback, stored, preferred, }","safeLocalStorage":"/**\n * Safe localStorage access with SSR compatibility\n * Handles cases where window is undefined (SSR) or storage is unavailable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const safeLocalStorage: {\n getItem: (key: string) => string | null;\n setItem: (key: string, value: string) => void;\n removeItem: (key: string) => void;\n}","safeSessionStorage":"/**\n * Safe sessionStorage access with SSR compatibility\n * Handles cases where window is undefined (SSR) or storage is unavailable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const safeSessionStorage: {\n getItem: (key: string) => string | null;\n setItem: (key: string, value: string) => void;\n removeItem: (key: string) => void;\n}","safeValidate":"/**\n * Safely validates data against a schema, returning null if validation fails instead of throwing.\n * Useful when you want to handle validation errors gracefully.\n *\n * @param schema - The Valibot schema to validate against\n * @param data - The data to validate\n * @returns The validated data, or null if validation fails\n *\n * @example\n * ```typescript\n * const validated = safeValidate(schema, rawData);\n * if (!validated) {\n * console.warn('Data validation failed, skipping...');\n * return null;\n * }\n * ```\n */\ndeclare function safeValidate<T>(schema: dndevSchema<T>, data: unknown): T | null;","sanitizeHref":"/**\n * Sanitize a URL for use in href attributes.\n * Blocks javascript:, data:, vbscript: and other dangerous schemes.\n * Allows safe schemes and relative URLs.\n *\n * @param href - The URL to sanitize\n * @returns The original URL if safe, empty string if dangerous\n */\ndeclare function sanitizeHref(href: string): string;","setCookie":"/**\n * Set a cookie with the specified options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function setCookie(name: string, value: string, options?: CookieOptions): void;","setLocalStorageItem":"/**\n * Safe localStorage.setItem with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param key - localStorage key\n * @param value - Value to store\n * @returns Success boolean or StorageError object\n */\ndeclare function setLocalStorageItem<T>(key: string, value: T): boolean | StorageError;","shouldShowEmailVerification":"/**\n * Check if email verification should be shown to users\n *\n * Email verification is only relevant when:\n * 1. Email authentication is enabled (user can sign up with email/password)\n * 2. Firebase email verification is enabled in the project settings\n *\n * @returns boolean - true if email verification should be shown\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function shouldShowEmailVerification(): boolean;","showNotification":"/**\n * Display a notification message (client-only)\n * This is a stub - actual implementation should be in client-side code\n * that imports toast directly from @donotdev/components\n *\n * @param message Message to display\n * @param severity Severity level\n * @param timeout Optional timeout in milliseconds\n * @returns ID of the notification\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function showNotification(message: string, severity?: 'error' | 'warning' | 'info' | 'success', timeout?: number): string;","supportsFeature":"/**\n * Check if browser supports a specific feature\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function supportsFeature(feature: keyof FeatureSupport): boolean;","throttle":"/**\n * Creates a throttled function that only invokes the provided function\n * at most once per every specified wait milliseconds.\n *\n * @param func The function to throttle\n * @param wait The number of milliseconds to throttle invocations to\n * @param trailing Whether to invoke on the trailing edge of the wait\n * @returns A throttled version of the function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function throttle<T extends (...args: any[]) => any>(func: T, wait?: number, trailing?: boolean): (...args: Parameters<T>) => void;","timestampToISOString":"/**\n * Convert timestamp (number) to ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param timestamp - Timestamp in milliseconds\n * @returns ISO string representation\n */\ndeclare function timestampToISOString(timestamp: number): string;","timingUtils":"/**\n * Index of all timing utility functions for easy reference\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const timingUtils: {\n debounce: typeof debounce;\n throttle: typeof throttle;\n cooldown: typeof cooldown;\n delay: typeof delay;\n}","toDateOnly":"/**\n * Extract date-only part from any date value (YYYY-MM-DD format).\n * Strips time component for date comparisons or display.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, or null/undefined)\n * @returns Date string in YYYY-MM-DD format, or empty string if invalid\n *\n * @example\n * toDateOnly('2025-12-28T14:30:00.000Z') // \"2025-12-28\"\n * toDateOnly(new Date()) // \"2025-12-28\"\n */\ndeclare function toDateOnly(date: DateValue | number | string | null | undefined): string;","toISOString":"/**\n * Convert Date object to ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date object to convert\n * @returns ISO string representation\n */\ndeclare function toISOString(date: Date): string;","translateArray":"/**\n * Translates an array using indexed keys and filters out missing translations\n *\n * **IMPORTANT:** This works with JSON arrays directly. i18next automatically treats\n * array indices as object keys, so `t('items.0')` works when JSON has `\"items\": [\"value1\", ...]`\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array (e.g., 'benefits', 'features.list')\n * @param maxIndex - Maximum index to check (exclusive, so 6 means indices 0-5)\n * @param options - Additional options for filtering\n * @returns Array of translated strings with missing translations filtered out\n *\n * @example\n * // JSON: { \"benefits\": [\"value1\", \"value2\", \"value3\"] }\n * const benefits = translateArray(t, 'benefits', 6);\n * // Result: [\"value1\", \"value2\", \"value3\"]\n * // Works because i18next treats arrays as objects with numeric keys\n *\n * @example\n * // JSON: { \"features\": { \"list\": [\"feature1\", \"feature2\"] } }\n * const features = translateArray(t, 'features.list', 5);\n * // Result: [\"feature1\", \"feature2\"]\n *\n * @example\n * // JSON: { \"items\": [\"a\", \"b\", \"c\", \"d\"] }\n * // Usage with List component:\n * <List items={translateArray(t, 'items', 10)} />\n * // i18next accesses items.0, items.1, etc. automatically\n *\n * @example\n * // With custom filtering\n * const items = translateArray(t, 'items', 10, {\n * minLength: 2, // Only include items with at least 2 characters\n * excludeEmpty: true // Exclude empty strings\n * });\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArray(t: TFunction, keyPrefix: string, maxIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateArrayRange":"/**\n * Translates an array with a specific range of indices\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array\n * @param startIndex - Starting index (inclusive)\n * @param endIndex - Ending index (exclusive)\n * @param options - Additional options for filtering\n * @returns Array of translated strings with missing translations filtered out\n *\n * @example\n * // Get items 2-5 (indices 2, 3, 4)\n * const items = translateArrayRange(t, 'items', 2, 5);\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArrayRange(t: TFunction, keyPrefix: string, startIndex: number, endIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateArrayWithIndices":"/**\n * Translates an array and returns both the items and their original indices\n * Useful when you need to maintain the original index information\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array\n * @param maxIndex - Maximum index to check (exclusive)\n * @param options - Additional options for filtering\n * @returns Array of objects with item and originalIndex properties\n *\n * @example\n * // Get benefits with their original indices\n * const benefitsWithIndices = translateArrayWithIndices(t, 'benefits', 6);\n * // Result: [\n * // { item: \"value1\", originalIndex: 0 },\n * // { item: \"value2\", originalIndex: 1 },\n * // { item: \"value3\", originalIndex: 2 }\n * // ]\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArrayWithIndices(t: TFunction, keyPrefix: string, maxIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateObjectArray":"/**\n * Translates an array of objects using indexed keys\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array (e.g., 'cases', 'items')\n * @param maxIndex - Maximum index to check (exclusive, so 4 means indices 0-3)\n * @param keys - Array of property keys to extract from each object (e.g., ['useCase', 'bestFit', 'dndev', 'reason'])\n * @returns Array of translated objects with missing translations filtered out\n *\n * @example\n * // JSON: { \"cases\": { \"0\": { \"useCase\": \"...\", \"bestFit\": \"...\" }, \"1\": {...} } }\n * const cases = translateObjectArray(t, 'cases', 4, ['useCase', 'bestFit', 'dndev', 'reason']);\n * // Result: [{ useCase: \"...\", bestFit: \"...\", dndev: \"...\", reason: \"...\" }, ...]\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateObjectArray<K extends string, T extends Record<K, string> = Record<K, string>>(t: TFunction, keyPrefix: string, maxIndex: number, keys: readonly K[]): T[];","updateMetadata":"/**\n * Creates update metadata for an existing document\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param userId - The ID of the user updating the document\n * @returns An object with update timestamp and user ID\n */\ndeclare function updateMetadata(userId: string): {\n updatedAt: string;\n updatedById: string;\n}","useSafeContext":"/**\n * Safe context hook with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useSafeContext<T>(context: T | undefined, name: string): T;","useStorageManager":"/**\n * React hook for using StorageManager\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns StorageManager instance\n */\ndeclare function useStorageManager(): IStorageManager;","validateCodeChallenge":"/**\n * Validate a code challenge format\n * @param challenge The code challenge to validate\n * @returns True if the challenge is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCodeChallenge(challenge: string): boolean;","validateCodeVerifier":"/**\n * Validate a code verifier format\n * @param verifier The code verifier to validate\n * @returns True if the verifier is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCodeVerifier(verifier: string): boolean;","validateWithSchema":"/**\n * Validates data against a schema, throwing a DoNotDevError if validation fails.\n * Use this in adapter methods to ensure data conforms to expected schemas.\n *\n * @param schema - The Valibot schema to validate against\n * @param data - The data to validate\n * @param context - Context for error messages (e.g., \"FirestoreAdapter.add\")\n * @returns The validated and parsed data\n * @throws DoNotDevError if validation fails\n *\n * @example\n * ```typescript\n * async add<T>(collection: string, data: T, schema?: dndevSchema<T>): Promise<{ id: string; data: Record<string, unknown> }> {\n * if (schema) {\n * data = validateWithSchema(schema, data, 'MyAdapter.add');\n * }\n * // ... proceed with validated data\n * }\n * ```\n */\ndeclare function validateWithSchema<T>(schema: dndevSchema<T>, data: unknown, context: string): T;","when":"/**\n * Start building a condition for a field.\n *\n * @param field - Field name to evaluate (supports dot notation for nested/cross-step: 'step.field')\n * @returns Builder with operator methods\n *\n * @example\n * ```typescript\n * // Simple\n * when('type').equals('car')\n *\n * // Combined\n * when('type').equals('corporate').or(when('size').greaterThan(10))\n *\n * // Cross-step (workflows)\n * when('basics.productType').equals('physical')\n * ```\n */\ndeclare function when(field: string): WhenFieldBuilder;","withErrorHandling":"/**\n * Creates a wrapped function that handles errors automatically\n *\n * @param fn - Function to wrap with error handling\n * @param options - Error handling options or user message\n * @returns Wrapped function with error handling\n *\n * @example\n * const safeFetchData = withErrorHandling(fetchData, 'Failed to fetch data');\n * await safeFetchData();\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function withErrorHandling<T extends (...args: any[]) => any>(fn: T, options?: HandleErrorOptions | string): (...args: Parameters<T>) => Promise<ReturnType<T>>;","withGracefulDegradation":"/**\n * Wraps initialization with graceful error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param init - Async initialization function\n * @param fallback - Fallback function on error\n * @param featureName - Name of feature for logging\n * @returns Result or false on error\n */\ndeclare function withGracefulDegradation<T>(init: () => Promise<T>, fallback: () => void, featureName: string): Promise<T | false>;","withTimeout":"/**\n * Wrap a promise with a timeout and optional AbortSignal.\n *\n * - If timeout expires: rejects with a TimeoutError\n * - If signal aborts: rejects with an AbortError\n * - If promise resolves/rejects first: returns that result\n * - Cleans up all listeners on completion\n *\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds (0 or negative = no timeout)\n * @param signal - Optional AbortSignal\n * @returns The promise result\n */\ndeclare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, signal?: AbortSignal): Promise<T>;","wrapAuthError":"/**\n * Wraps an error from an auth adapter operation.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirebaseAuth.signInWithEmail\")\n * @param operation - The operation name (e.g., \"signInWithEmail\", \"linkWithPartner\")\n * @param details - Optional additional details (e.g., email, partnerId)\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.sdk.signInWithEmailAndPassword(email, password);\n * } catch (error) {\n * throw wrapAuthError(error, 'CustomAuth.signInWithEmail', 'signInWithEmail', { email });\n * }\n * ```\n */\ndeclare function wrapAuthError(error: unknown, context: string, operation: string, details?: Record<string, unknown>): DoNotDevError;","wrapCrudError":"/**\n * Wraps an error from a CRUD adapter operation.\n * Maps common database/API errors to DoNotDevError with appropriate codes.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirestoreAdapter.get\", \"SupabaseAdapter.add\")\n * @param operation - The operation name (e.g., \"get\", \"add\", \"query\")\n * @param collection - The collection/table name\n * @param id - Optional document ID\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.client.from('users').select().eq('id', id).single();\n * } catch (error) {\n * throw wrapCrudError(error, 'SupabaseCrudAdapter.get', 'get', 'users', id);\n * }\n * ```\n */\ndeclare function wrapCrudError(error: unknown, context: string, operation: string, collection: string, id?: string): DoNotDevError;","wrapStorageError":"/**\n * Wraps an error from a storage adapter operation.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirebaseStorageAdapter.upload\")\n * @param operation - The operation name (e.g., \"upload\", \"delete\", \"getUrl\")\n * @param path - The storage path or URL\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.bucket.upload(file, { destination: path });\n * } catch (error) {\n * throw wrapStorageError(error, 'S3StorageAdapter.upload', 'upload', path);\n * }\n * ```\n */\ndeclare function wrapStorageError(error: unknown, context: string, operation: string, path: string): DoNotDevError;","AuthHardeningConfig":"/** Configuration for brute-force lockout and session timeout enforcement. */\ninterface AuthHardeningConfig {\n /**\n * Max consecutive failed sign-in attempts before lockout.\n * @default 5\n */\n maxAttempts?: number;\n /**\n * Lockout duration in milliseconds.\n * @default 900_000 (15 minutes)\n */\n lockoutMs?: number;\n /**\n * Idle session timeout in milliseconds. After this period of inactivity,\n * the session is considered expired.\n * @default 28_800_000 (8 hours)\n */\n sessionTimeoutMs?: number;\n}","AuthUserLike":"/**\n * Shape of a user object that can refresh its own token.\n * Accepts Firebase User or any compatible auth user.\n */\ninterface AuthUserLike {\n getIdToken?: (forceRefresh?: boolean) => Promise<string>;\n getIdTokenResult?: (forceRefresh?: boolean) => Promise<{\n token: string;\n expirationTime: string;\n }>;\n}","BrowserEngine":"/**\n * Browser engine type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BrowserEngine = 'blink' | 'gecko' | 'webkit' | 'trident' | 'edgehtml' | 'unknown';","BrowserInfo":"/**\n * Browser information interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BrowserInfo {\n type: BrowserType;\n version: string;\n engine: BrowserEngine;\n os: OS;\n isMobile: boolean;\n isTablet: boolean;\n isLaptop: boolean;\n userAgent: string;\n language: string;\n languages: string[];\n cookieEnabled: boolean;\n onLine: boolean;\n doNotTrack: boolean;\n hardwareConcurrency: number;\n maxTouchPoints: number;\n deviceMemory?: number;\n connection?: {\n effectiveType: string;\n downlink: number;\n rtt: number;\n };\n}","BrowserType":"/**\n * @fileoverview Browser Detection and Compatibility Utilities\n * @description Comprehensive browser detection, feature support, and compatibility checking\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BrowserType = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'ie' | 'unknown';","Claims":"/**\n * Claims type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Claims = Record<string, any>;","ClaimsCacheOptions":"/**\n * Claims cache options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ClaimsCacheOptions {\n /** Enable offline trust (default: false) */\n offlineTrustEnabled?: boolean;\n /** Storage key prefix (default: 'dndev-claims') */\n storageKey?: string;\n /** User ID for scoped storage */\n userId?: string | null;\n}","ClaimsCacheResult":"/**\n * Claims cache result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ClaimsCacheResult<T> {\n claims: T;\n source: 'network' | 'cache' | 'server-default';\n timestamp: number;\n}","CleanupFunction":"/**\n * Cleanup function returned by observeElement\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CleanupFunction = () => void;","CompatibilityReport":"/**\n * Compatibility report interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CompatibilityReport {\n browser: BrowserInfo;\n features: FeatureSupport;\n issues: string[];\n warnings: string[];\n recommendations: string[];\n score: number;\n}","ConsentLevel":"/**\n * Consent level type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ConsentLevel = (typeof CONSENT_LEVELS)[keyof typeof CONSENT_LEVELS];","CookieInfo":"/** Metadata for a single cookie used by the consent banner. */\ninterface CookieInfo {\n name: string;\n category: 'necessary' | 'functional' | 'analytics' | 'marketing';\n purpose: string;\n provider: string;\n}","CurrencyEntry":"/** Entry: 3-letter code → locale (for Intl) and display symbol */\ninterface CurrencyEntry {\n locale: string;\n symbol: string;\n}","DateFormatOptions":"/** Custom format options for fine-grained control */\ninterface DateFormatOptions {\n year?: 'numeric' | '2-digit';\n month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';\n day?: 'numeric' | '2-digit';\n weekday?: 'long' | 'short' | 'narrow';\n hour?: 'numeric' | '2-digit';\n minute?: 'numeric' | '2-digit';\n second?: 'numeric' | '2-digit';\n hour12?: boolean;\n timeZone?: string;\n timeZoneName?: 'long' | 'short';\n}","DateFormatPreset":"/** Date format presets for common use cases */\ntype DateFormatPreset = 'full' | 'long' | 'medium' | 'short' | 'date-only' | 'time-only' | 'datetime';","ErrorHandlerConfig":"/**\n * Core configuration for error handlers\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ErrorHandlerConfig {\n errorSource: ErrorSource;\n defaultErrorCode: ErrorCode;\n defaultErrorMessage: string;\n errorCodeMapping?: Record<string, ErrorCode>;\n friendlyMessageMapping?: Record<string, string>;\n extractErrorCode?: (error: unknown) => string | undefined;\n extractErrorMessage?: (error: unknown) => string | undefined;\n processMetadata?: (error: unknown) => Record<string, any>;\n}","ErrorHandlerFunction":"/**\n * Type for error handler functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ErrorHandlerFunction = (error: unknown, userMessage?: string) => DoNotDevError;","EventListener":"/**\n * Event listener interface for TypeScript type checking\n *\n * Represents a single event listener with its handler function, configuration,\n * and optional context for binding.\n *\n * **Properties:**\n * - handler: Function to call when event is emitted\n * - once: Whether listener should be removed after first call\n * - context: Optional context to bind handler to\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EventListener<T = any> {\n /**\n * Handler function for the event\n */\n handler: InternalEventHandler;\n /**\n * Whether this is a one-time listener\n */\n once: boolean;\n /**\n * Optional context for the handler\n */\n context?: T;\n}","FeatureAvailability":"/**\n * Feature availability map\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureAvailability = Record<FrameworkFeature, boolean>;","FeatureSupport":"/**\n * Feature support interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureSupport {\n es6: boolean;\n es2017: boolean;\n es2020: boolean;\n modules: boolean;\n dynamicImport: boolean;\n webWorkers: boolean;\n serviceWorkers: boolean;\n pushNotifications: boolean;\n geolocation: boolean;\n webRTC: boolean;\n webGL: boolean;\n webGL2: boolean;\n localStorage: boolean;\n sessionStorage: boolean;\n indexedDB: boolean;\n webAudio: boolean;\n webVideo: boolean;\n getUserMedia: boolean;\n cssGrid: boolean;\n cssFlexbox: boolean;\n cssCustomProperties: boolean;\n cssContainerQueries: boolean;\n webp: boolean;\n avif: boolean;\n webpLossless: boolean;\n webpAnimation: boolean;\n intersectionObserver: boolean;\n resizeObserver: boolean;\n mutationObserver: boolean;\n performanceObserver: boolean;\n manifest: boolean;\n beforeInstallPrompt: boolean;\n standalone: boolean;\n crypto: boolean;\n subtleCrypto: boolean;\n secureContext: boolean;\n}","FilterVisibleFieldsOptions":"/**\n * Options for owner-level visibility (per-document check).\n * Pass documentData, uid, and ownership so fields with visibility: 'owner' are included when uid matches an owner field.\n */\ntype FilterVisibleFieldsOptions = GetVisibleFieldsOptions;","FrameworkFeature":"/**\n * Framework feature type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FrameworkFeature = (typeof FRAMEWORK_FEATURES)[keyof typeof FRAMEWORK_FEATURES];","GetVisibleFieldsOptions":"/**\n * Options for owner-level visibility (per-document check).\n */\ninterface GetVisibleFieldsOptions {\n documentData?: Record<string, unknown>;\n uid?: string;\n ownership?: EntityOwnershipConfig;\n}","HandleErrorOptions":"/** Options for the handleError utility. */\ninterface HandleErrorOptions {\n userMessage?: string;\n context?: Record<string, any>;\n log?: boolean;\n reportToSentry?: boolean;\n showNotification?: boolean;\n severity?: 'error' | 'warning' | 'info' | 'success';\n notificationTimeout?: number;\n}","IntersectionObserverCallback":"/**\n * Intersection observer callback function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype IntersectionObserverCallback = (entries: IntersectionObserverEntry[]) => void;","IntersectionObserverOptions":"/**\n * Intersection Observer options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface IntersectionObserverOptions {\n threshold?: number | number[];\n rootMargin?: string;\n root?: Element | null;\n}","LockoutResult":"/** Result of a lockout status check for an identifier. */\ninterface LockoutResult {\n attempts: number;\n locked: boolean;\n lockedUntil: number | null;\n}","OS":"/**\n * Operating system type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OS = 'windows' | 'macos' | 'linux' | 'android' | 'ios' | 'unknown';","PlatformInfo":"/**\n * Platform information interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PlatformInfo {\n platform: Platform;\n version?: string;\n mode: EnvironmentMode;\n context: Context;\n metadata?: {\n nextjsRuntime?: string;\n viteHmrPort?: number;\n detectedAt?: number;\n };\n}","StorageError":"/**\n * Storage error interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StorageError {\n type: StorageErrorType;\n message: string;\n originalError?: unknown;\n}","StorageErrorType":"/**\n * Storage error type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StorageErrorType = 'quota_exceeded' | 'security_error' | 'unavailable' | 'unknown';","TokenManagerOptions":"/**\n * Configuration options for TokenManager\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenManagerOptions {\n /**\n * Buffer time in milliseconds before expiration to consider a token as \"expiring soon\"\n * @default 120000 (2 minutes)\n */\n refreshBufferMs?: number;\n /**\n * Whether to automatically refresh tokens that are expiring soon\n * @default true\n */\n autoRefresh?: boolean;\n /**\n * Maximum number of refresh attempts before failing\n * @default 3\n */\n maxRefreshAttempts?: number;\n /**\n * Callback when the token expires and cannot be refreshed\n */\n onTokenExpired?: () => void;\n /**\n * Callback when a fatal error occurs\n */\n onFatalError?: (error: Error) => void;\n}","ViewportDetectionOptions":"/**\n * Viewport detection options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ViewportDetectionOptions {\n /**\n * Intersection threshold (0-1)\n * @default 0.1\n */\n threshold?: number;\n /**\n * Root margin for intersection observer\n * @default '50px'\n */\n rootMargin?: string;\n /**\n * Whether to trigger only once\n * @default false\n */\n once?: boolean;\n /**\n * Whether to track individual items\n * @default true\n */\n trackItems?: boolean;\n}","ViewportDetectionResult":"/**\n * Viewport detection result\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ViewportDetectionResult {\n /**\n * Whether the container is visible\n */\n isVisible: boolean;\n /**\n * Whether the container has been triggered at least once\n */\n hasTriggered: boolean;\n /**\n * Set of visible item indices\n */\n visibleItems: Set<number>;\n}","applyTheme":"/**\n * Apply theme to document with proper dark mode detection\n * Returns whether the applied theme is dark\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function applyTheme(themeName: string): boolean;","buildRoutePath":"/**\n * Build route path with dynamic parameters\n * @param basePath - Base path from file structure (e.g., '/blog')\n * @param params - Route parameters (e.g., ['slug'])\n * @returns Complete route path (e.g., '/blog/:slug')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function buildRoutePath(basePath: string, params?: string[]): string;","createDoNotDevStore":"/**\n * Creates a DoNotDev store with framework conventions\n *\n * ## Usage Rules — READ vs CALL\n *\n * **Reading state (reactive):** Use selector hooks — component re-renders when value changes.\n * ```ts\n * const user = useAuthStore((s) => s.user); // ✅ Reactive state\n * const isReady = useFormStore((s) => s.isReady); // ✅ Reactive state\n * ```\n *\n * **Calling actions (imperative):** Use `getState()` — no subscription, stable reference.\n * ```ts\n * useEffect(() => {\n * useFormStore.getState().setIsDirty(formId, true); // ✅ Action via getState\n * return () => {\n * useUploadStore.getState().unregisterUpload(id); // ✅ Cleanup via getState\n * };\n * }, [formId]);\n * ```\n *\n * **NEVER** select actions via hooks or put them in dependency arrays:\n * ```ts\n * const setDirty = useFormStore((s) => s.setIsDirty); // ❌ Creates subscription\n * useEffect(() => { setDirty(id, true); }, [setDirty]); // ❌ Infinite loop risk\n *\n * const store = useUploadStore(); // ❌ Entire store = new ref every update\n * useEffect(() => { ... }, [store]); // ❌ Infinite loop\n * ```\n *\n * Middleware (devtools, persist) can break action reference stability,\n * making `getState()` the only safe pattern for imperative store access.\n *\n * @remarks\n * The `Record<string, any>` constraint on `T` is intentional. Using `unknown` instead of `any`\n * breaks all consumer store definitions because TypeScript's mapped types and index signatures\n * are incompatible with `unknown` in this position. Specifically, store state types use index\n * signatures (e.g., `[key: string]: ...`) that require `any` to satisfy the constraint.\n * This is a known TypeScript limitation — not a code quality issue.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDoNotDevStore<T extends Record<string, any>>(config: DoNotDevStoreConfig<T>): UseBoundStore<StoreApi<T & DoNotDevStore>>;","extractRoutePath":"/**\n * Extract route path from page meta export\n * @param pageModule - Imported page module\n * @returns Route path string or undefined\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function extractRoutePath(pageModule: any): string | undefined;","getAvailableThemeNames":"/**\n * Get theme names only - derives from getAvailableThemes()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableThemeNames(): string[];","getAvailableThemes":"/**\n * Get all available themes from build-time detection\n * Zero runtime cost - data injected by Vite plugin\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableThemes(): ThemeInfo[];","getRouteManifest":"/**\n * Get route manifest from globals (following i18n pattern)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRouteManifest(): RouteManifest | null;","getRouteSource":"/**\n * Get route source from globals\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRouteSource(): string;","getRoutes":"/**\n * Get route data from globals (following i18n pattern)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRoutes(): RouteData[];","getSmartDefaults":"/**\n * Smart defaults for pages without explicit meta configuration\n * Uses convention-over-configuration approach\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getSmartDefaults(path: string, pageModule: any): Partial<RouteData['meta']>;","getThemeInfo":"/**\n * Get theme metadata for a given theme name\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getThemeInfo(themeName: string): ThemeInfo | null;","isDoNotDevStore":"/**\n * Type guard to check if a store is a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isDoNotDevStore(store: unknown): store is DoNotDevStore;","isValidTheme":"/**\n * Check if a theme is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isValidTheme(themeName: string): boolean;","resolveAuthConfig":"/**\n * Determine auth requirements with simple defaults\n * Default: false (public) - developer must explicitly specify auth requirements\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function resolveAuthConfig(path: string, pageModule: any): RouteData['auth'];","resolvePageMeta":"/**\n * Merge page meta with smart defaults\n * Only uses defaults for missing properties\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function resolvePageMeta(path: string, pageModule: any): RouteData['meta'];","useAbortControllerStore":"/**\n * Abort controller store for managing request cancellation\n *\n * **Architecture:**\n * This store provides centralized management of AbortController instances\n * for canceling HTTP requests and other async operations. It ensures\n * proper cleanup and prevents memory leaks from abandoned requests.\n *\n * **State Management:**\n * - `controllers`: Map of active AbortController instances keyed by request ID\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - HTTP request cancellation\n * - Async operation cleanup\n * - Component unmount handling\n * - Framework request management\n *\n * **Performance Features:**\n * - Efficient controller management with Map-based storage\n * - Automatic cleanup of abandoned controllers\n * - Memory leak prevention\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Create controller for request\n * const { createController } = useAbortControllerStore();\n * const controller = createController('user-fetch');\n *\n * // Cancel specific request\n * const { abortController } = useAbortControllerStore();\n * abortController('user-fetch');\n *\n * // Cancel all requests\n * const { abortAll } = useAbortControllerStore();\n * abortAll();\n * ```\n */\ndeclare const useAbortControllerStore: zustand.UseBoundStore<zustand.StoreApi<AbortControllerState & DoNotDevStore>>;","useAnalyticsConsent":"/**\n * Hook to get analytics consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useAnalyticsConsent: () => boolean;","useBreakpoint":"/**\n * Hook for accessing breakpoint state\n * Fine-grained selectors - subscribe only to the property you need\n * - Next.js SSR: Zustand handles SSR automatically\n * - Vite CSR: Uses store state (initialized with actual window size)\n * - Both: Store handles resize updates reactively\n *\n * @param key - Property key from BreakpointUtils to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to current breakpoint\n * const current = useBreakpoint('current');\n *\n * // Subscribe only to isMobile boolean\n * const isMobile = useBreakpoint('isMobile');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useBreakpoint<K extends keyof BreakpointAPI>(key: K): BreakpointAPI[K];","useConsent":"declare function useConsent<K extends keyof ConsentAPI>(key: K): ConsentAPI[K];","useConsentReady":"/**\n * Hook to check if consent store is ready\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useConsentReady: () => boolean;","useConsentStore":"/**\n * Consent store hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useConsentStore: zustand.UseBoundStore<zustand.StoreApi<ConsentAPI & DoNotDevStore>>;","useFeatureConsent":"/**\n * Hook for checking feature availability\n *\n * Now only checks if feature is available via env vars/package installation.\n * Consent is separate - only for cookies/tracking (GDPR).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFeatureConsent(feature: string): boolean;","useFunctionalConsent":"/**\n * Hook to get functional consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useFunctionalConsent: () => boolean;","useHasConsented":"/**\n * Hook to check if user has consented\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useHasConsented: () => boolean;","useLanguage":"/**\n * Hook for accessing language state and actions\n * Fine-grained selectors — subscribe only to the property you need\n *\n * @param key - Property key from LanguageAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * const currentLanguage = useLanguage('currentLanguage');\n * const isRTL = useLanguage('isRTL');\n * const setLanguage = useLanguage('setLanguage');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLanguage<K extends keyof LanguageAPI>(key: K): LanguageAPI[K];","useLanguageReady":"/**\n * Convenience hook to check if LanguageStore is ready\n * Consistent with useThemeReady() / useConsentReady() pattern\n *\n * @returns true when LanguageStore has finished initialization\n *\n * @example\n * ```tsx\n * const isReady = useLanguageReady();\n * if (!isReady) return <Loading />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useLanguageReady: () => boolean;","useLanguageStore":"/**\n * Language store for managing language state as a first-class zustand concern.\n *\n * **Architecture:**\n * - Bidirectional sync with i18next: store → i18n via setLanguage(), i18n → store via languageChanged listener\n * - Persist: only `currentLanguage` is persisted (replaces async getUserLanguage/saveUserLanguage flow)\n * - RTL detection: inlined, no @donotdev/components dependency\n * - i18n instance: injected via initialize(), stored in module-level closure\n *\n * @example\n * ```tsx\n * // Fine-grained hook\n * const currentLanguage = useLanguage('currentLanguage');\n * const isRTL = useLanguage('isRTL');\n *\n * // Change language\n * useLanguageStore.getState().setLanguage('fr');\n *\n * // Check readiness\n * const isReady = useLanguageReady();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useLanguageStore: zustand.UseBoundStore<zustand.StoreApi<LanguageState & LanguageActions & DoNotDevStore>>;","useLayout":"/**\n * Hook for accessing layout state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from LayoutAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to layout preset\n * const preset = useLayout('layoutPreset');\n *\n * // Subscribe only to setLayoutPreset method\n * const setLayoutPreset = useLayout('setLayoutPreset');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLayout<K extends keyof LayoutAPI>(key: K): LayoutAPI[K];","useMarketingConsent":"/**\n * Hook to get marketing consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useMarketingConsent: () => boolean;","useNavigationStore":"/**\n * Navigation Store\n *\n * Provides centralized management of navigation routes with intelligent caching\n * and auth-based filtering. Integrates with route discovery system and provides\n * optimized data access for UI components.\n *\n * **Key Features:**\n * - Route discovery integration via globalThis._DNDEV_CONFIG_\n * - Automatic filtering of dynamic routes (/:id, /users/:userId) from navigation\n * - Auth-based route filtering with intelligent caching\n * - Route grouping by entity/domain for organized menus\n * - Performance optimization through memoization\n * - SSR-safe initialization patterns\n *\n * **Route Filtering:**\n * - Dynamic routes (containing `:`) are excluded from navigation menus\n * - Auth-based filtering applied per user permissions\n * - Routes cached by auth state key (authenticated-role)\n * - Groups computed once and reused across components\n * - Cache invalidation on route discovery changes\n *\n * **Performance:**\n * - Routes cached after first access\n * - Auth filtering memoized by state key\n * - Groups computed once at initialization\n * - Minimal re-renders with Zustand selectors\n *\n * @constant\n * @type {UseBoundStore<StoreApi<NavigationState & DoNotDevStore>>}\n * @since 0.0.1\n *\n * @example\n * ```typescript\n * // Get all routes\n * const allRoutes = useNavigationStore((state) => state.getAllRoutes());\n *\n * // Get filtered routes by auth\n * const routes = useNavigationStore((state) =>\n * state.getFilteredRoutes({ authenticated: true, role: 'admin' })\n * );\n *\n * // Get route groups\n * const groups = useNavigationStore((state) => state.getRouteGroups());\n * ```\n */\ndeclare const useNavigationStore: zustand.UseBoundStore<zustand.StoreApi<NavigationState & DoNotDevStore>>;","useNetwork":"/**\n * Hook for accessing network state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetwork(): {\n reset: () => void;\n status: NetworkStatus;\n isOnline: boolean;\n isReconnected: boolean;\n isConnectionLost: boolean;\n connectionType: NetworkConnectionType;\n effectiveType: string | undefined;\n lastChecked: Date;\n}","useNetworkConnectionType":"/**\n * Selector hook for connection type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkConnectionType(): NetworkConnectionType;","useNetworkOnline":"/**\n * Selector hook for online status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkOnline(): boolean;","useNetworkStatus":"/**\n * Selector hook for network status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkStatus(): NetworkStatus;","useNetworkStore":"/**\n * Network store for DoNotDev framework\n *\n * **Architecture:**\n * This store provides centralized network state management for the application.\n * It monitors network connectivity, connection quality, and provides real-time\n * updates about network status changes.\n *\n * **State Management:**\n * - `status`: Current network status including online state and connection type\n * - `isReconnected`: Whether the connection was recently restored\n * - `isConnectionLost`: Whether the connection was recently lost\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - Network monitoring components\n * - Offline/online state management\n * - Connection quality indicators\n * - Framework network utilities\n *\n * **Performance Features:**\n * - Efficient state updates with minimal re-renders\n * - Real-time network status monitoring\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Check network status\n * const { status, isReconnected } = useNetworkStore();\n *\n * // Monitor connection changes\n * const { setStatus } = useNetworkStore();\n * setStatus({ online: true, connectionType: 'wifi' });\n *\n * // Handle reconnection\n * const { setReconnected } = useNetworkStore();\n * setReconnected();\n * ```\n */\ndeclare const useNetworkStore: zustand.UseBoundStore<zustand.StoreApi<NetworkState & DoNotDevStore>>;","useOverlay":"/**\n * Hook for accessing overlay state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from OverlayAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to modal open state\n * const isOpen = useOverlay('isOpen');\n *\n * // Subscribe only to showRedirectOverlay method\n * const showRedirectOverlay = useOverlay('showRedirectOverlay');\n * showRedirectOverlay('stripe-checkout');\n *\n * // Subscribe only to redirect overlay state\n * const isRedirectOverlayOpen = useOverlay('isRedirectOverlayOpen');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useOverlay<K extends keyof OverlayAPI>(key: K): OverlayAPI[K];","useOverlayStore":"/**\n * Overlay store for managing all overlay types (modals, sheets, etc.)\n *\n * **Architecture:**\n * This store provides centralized overlay management for the application.\n * It handles modal state, sheet state, and provides a simple API for\n * opening and closing overlays throughout the application.\n *\n * **State Management:**\n * - `isOpen`: Whether a modal is currently open\n * - `content`: The React content to display in the modal\n * - `isSheetOpen`: Whether a sheet is currently open\n * - `isCommandDialogOpen`: Whether the command dialog (GlobalGoTo) is currently open\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - Modal components that subscribe to this store\n * - Sheet components that subscribe to this store\n * - Application components that need to show overlays\n * - Framework overlay system integration\n * - Navigation cleanup (automatically closes all overlays)\n *\n * **Performance Features:**\n * - Efficient state updates with minimal re-renders\n * - Automatic cleanup when overlays are closed\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Open a modal\n * const openModal = useOverlayStore((state) => state.openModal);\n * openModal(<MyModalContent />);\n *\n * // Close modal\n * const closeModal = useOverlayStore((state) => state.closeModal);\n * closeModal();\n *\n * // Open/close sheet\n * const isSheetOpen = useOverlayStore((state) => state.isSheetOpen);\n * const openSheet = useOverlayStore((state) => state.openSheet);\n * const closeSheet = useOverlayStore((state) => state.closeSheet);\n *\n * // Open/close command dialog (GlobalGoTo)\n * const isCommandDialogOpen = useOverlayStore((state) => state.isCommandDialogOpen);\n * const openCommandDialog = useOverlayStore((state) => state.openCommandDialog);\n * const closeCommandDialog = useOverlayStore((state) => state.closeCommandDialog);\n *\n * // Close all overlays (useful for navigation cleanup)\n * const closeAll = useOverlayStore((state) => state.closeAll);\n * closeAll();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useOverlayStore: zustand.UseBoundStore<zustand.StoreApi<OverlayState & ExtendedOverlayActions & DoNotDevStore>>;","useRateLimit":"declare function useRateLimit(): {\n checkLimit: () => boolean;\n resetLimit: () => void;\n}","useTheme":"/**\n * Hook for accessing theme state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from ThemeAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to current theme\n * const currentTheme = useTheme('currentTheme');\n *\n * // Subscribe only to isDarkMode\n * const isDarkMode = useTheme('isDarkMode');\n *\n * // Subscribe only to setTheme method\n * const setTheme = useTheme('setTheme');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useTheme<K extends keyof ThemeAPI>(key: K): ThemeAPI[K];","useThemeReady":"/**\n * Convenience hook to check if ThemeStore is ready\n * Consistent with useI18nReady() pattern\n *\n * @returns true when ThemeStore has finished initialization (themes loaded)\n *\n * @example\n * ```tsx\n * const isReady = useThemeReady();\n * if (!isReady) return <Loading />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useThemeReady: () => boolean;","useThemeStore":"/**\n * Simplified Theme Store - Clean Architecture\n *\n * SIMPLIFIED APPROACH:\n * - Store only stores the current preset name and app config\n * - CSS file handles all visual styling via [data-layout] selectors\n * - layoutConfigs.tsx maps presets to components\n * - DnDevLayout renders components directly\n * - No complex matrix logic or CSS variable management in JS\n */\ndeclare const useThemeStore: zustand.UseBoundStore<zustand.StoreApi<ExtendedThemeState & ThemeActions & LayoutActions & BreakpointActions & DoNotDevStore>>;","BreakpointAPI":"/**\n * Breakpoint API type - complete interface for useBreakpoint\n *\n * Maps each property of BreakpointUtils to its value type for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n *\n * @example\n * ```typescript\n * // Subscribe only to current breakpoint string\n * const current = useBreakpoint('current');\n *\n * // Subscribe only to width number\n * const width = useBreakpoint('width');\n *\n * // Subscribe only to isMobile boolean\n * const isMobile = useBreakpoint('isMobile');\n * ```\n */\ntype BreakpointAPI = BreakpointUtils;","DoNotDevStore":"/**\n * DoNotDev store interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevStore extends BaseStoreActions, BaseStoreState {\n readonly isReady: boolean;\n readonly _hasHydrated?: boolean;\n initialize(data?: Record<string, unknown>): Promise<boolean>;\n cleanup?(): void;\n}","DoNotDevStoreConfig":"/**\n * Configuration for creating a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevStoreConfig<T> {\n name: string;\n createStore: (set: (partial: Partial<T & DoNotDevStore> | ((state: T & DoNotDevStore) => Partial<T & DoNotDevStore>)) => void, get: () => T & DoNotDevStore, api: StoreApi<T & DoNotDevStore>) => T;\n initialize?: (data?: Record<string, unknown>) => Promise<boolean>;\n cleanup?: () => void;\n /**\n * Optional persist configuration\n * When provided, store state is persisted to storage\n *\n * @since 0.0.1\n */\n persistOptions?: Omit<PersistOptions<T & DoNotDevStore, Partial<T & DoNotDevStore>>, 'name'> & {\n /** Storage key name (required) */\n name: string;\n };\n}","DoNotDevStoreState":"/**\n * Extract the state type from a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DoNotDevStoreState<T> = T extends (...args: any[]) => infer R ? R extends DoNotDevStore ? R : never : never;","LanguageAPI":"/**\n * Language API type — complete interface for useLanguage\n */\ntype LanguageAPI = LanguageState & LanguageActions;","LayoutAPI":"/**\n * Layout API type - complete interface for useLayout\n *\n * Maps all layout-related state and actions for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n */\ntype LayoutAPI = Pick<ExtendedThemeState & LayoutActions, 'layoutPreset' | 'layoutApp' | 'isLayoutLoading' | 'gameTitle' | 'gameSubtitle' | 'gameNamespace' | 'sidebarWidth' | 'routePresetOverride' | 'initializeLayout' | 'setLayoutPreset' | 'setLayoutLoading' | 'setGameTitle' | 'setGameSubtitle' | 'setGameNamespace' | 'setSidebarWidth' | 'setRoutePresetOverride' | 'routeHideBreadcrumbs' | 'setRouteHideBreadcrumbs'>;","OverlayAPI":"/**\n * Overlay API type - complete interface for useOverlay\n *\n * Maps each property of OverlayState & ExtendedOverlayActions to its value type\n * for fine-grained selectors. Components only subscribe to the specific property they need.\n *\n * @example\n * ```typescript\n * // Subscribe only to modal open state\n * const isOpen = useOverlay('isOpen');\n *\n * // Subscribe only to showRedirectOverlay method\n * const showRedirectOverlay = useOverlay('showRedirectOverlay');\n *\n * // Subscribe only to redirect overlay state\n * const isRedirectOverlayOpen = useOverlay('isRedirectOverlayOpen');\n * ```\n */\ntype OverlayAPI = OverlayState & ExtendedOverlayActions;","RouteData":"/**\n * Route data type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RouteData = RoutesPluginConfig['mapping'][0];","RouteManifest":"/**\n * Route manifest type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RouteManifest = RoutesPluginConfig['manifest'];","ThemeAPI":"/**\n * Theme API type - complete interface for useTheme\n *\n * Maps all theme-related state and actions for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n */\ntype ThemeAPI = ThemeState & ThemeActions;","BACKEND_GENERATED_FIELD_NAMES":"/**\n * Fields that are TRULY backend-generated (cannot be set by user)\n * These are stripped from create operations - backend creates them automatically\n *\n * @category Field Families\n * @constant BACKEND_GENERATED_FIELD_NAMES\n */\ndeclare const BACKEND_GENERATED_FIELD_NAMES: readonly [\"id\", \"createdAt\", \"updatedAt\", \"createdById\", \"updatedById\"];","BulkDeleteIdSchema":"/**\n * Opaque delete-id schema — a single document id.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkDeleteIdSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkDeleteIdSchema, 'doc-123');\n */\ndeclare const BulkDeleteIdSchema: v.StringSchema<undefined>;","BulkInsertSchema":"/**\n * Opaque insert row schema.\n *\n * The bulk endpoint does not know the entity at parse time; per-field\n * validation is delegated to the CRUD service using the entity's `create`\n * schema. We only enforce the structural invariant: each insert is an object.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkInsertSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkInsertSchema, { name: 'Alice', age: 30 });\n */\ndeclare const BulkInsertSchema: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;","BulkRequestSchema":"/**\n * Wire schema for `POST /:collection/bulk` request body.\n *\n * All three op arrays are optional so clients can submit any subset.\n * An empty object `{}` is a valid no-op payload — the service short-circuits\n * and returns empty arrays without hitting the database.\n *\n * Per the bulk contract (see `BULK_CRUD_TODO.md`):\n * 1. Atomic — all ops succeed or none do.\n * 2. One round-trip.\n * 3. Validation up-front (per-entity schemas in CRUD service).\n * 4. Collision rejection (see `detectBulkCollisions`).\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkRequestSchema } from '@donotdev/schemas';\n *\n * const body = v.parse(BulkRequestSchema, {\n * inserts: [{ name: 'Alice' }],\n * updates: [{ id: 'a', patch: { name: 'Bob' } }],\n * deletes: ['c'],\n * });\n */\ndeclare const BulkRequestSchema: v.ObjectSchema<{\n readonly inserts: v.OptionalSchema<v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;\n readonly updates: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly patch: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly deletes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n}","BulkResponseSchema":"/**\n * Wire schema for `POST /:collection/bulk` response body.\n *\n * Arrays preserve input order so consumers can zip the echoed ids back onto\n * the client-side op list (e.g. to reconcile optimistic cache entries).\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkResponseSchema } from '@donotdev/schemas';\n *\n * const result = v.parse(BulkResponseSchema, {\n * insertedIds: ['new-1'],\n * updatedIds: ['a'],\n * deletedIds: ['c'],\n * });\n */\ndeclare const BulkResponseSchema: v.ObjectSchema<{\n readonly insertedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n readonly updatedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n readonly deletedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n}","BulkUpdateSchema":"/**\n * Opaque update row schema: `{ id, patch }`.\n *\n * `patch` keeps field-level validation deferred to the entity's `update`\n * schema, mirroring how single-row `update()` accepts a partial payload.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkUpdateSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkUpdateSchema, { id: 'abc', patch: { name: 'Bob' } });\n */\ndeclare const BulkUpdateSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly patch: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n}","CanvasBlockSchema":"declare const CanvasBlockSchema: v.ObjectSchema<{\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly kind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly lifetime: v.OptionalSchema<v.PicklistSchema<[\"ephemeral\", \"session\", \"persistent\"], undefined>, \"ephemeral\">;\n readonly metadata: v.OptionalSchema<v.ObjectSchema<{\n readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly pinnable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly preferredHeight: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;\n }, undefined>, undefined>;\n readonly payload: v.UnknownSchema;\n}","CanvasEventSchema":"declare const CanvasEventSchema: v.ObjectSchema<{\n readonly widgetId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly action: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly payload: v.UnknownSchema;\n}","CanvasLifetimeSchema":"declare const CanvasLifetimeSchema: v.PicklistSchema<[\"ephemeral\", \"session\", \"persistent\"], undefined>;","CanvasWidgetMetadataSchema":"declare const CanvasWidgetMetadataSchema: v.ObjectSchema<{\n readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly pinnable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly preferredHeight: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;\n}","DEFAULT_STATUS_OPTIONS":"/**\n * Default status options for draft/publish/delete workflow\n * Framework provides 'draft', 'available', 'deleted' - consumers can extend\n *\n * Translation fallback order: entity-{name} → crud (never dndev)\n * - Framework defaults: crud:status.draft, crud:status.available, crud:status.deleted\n * - User overrides: entity-{name}_*.json files (e.g., entity-inquiry_en.json: \"status.draft\": \"New\")\n *\n * CRUD is optional and shouldn't pollute core framework (dndev) namespace\n */\ndeclare const DEFAULT_STATUS_OPTIONS: readonly [{\n readonly value: \"draft\";\n readonly label: \"crud:status.draft\";\n}","DEFAULT_STATUS_VALUE":"/**\n * Default status value for new documents (visible immediately).\n * Forms use 'draft' explicitly for save-and-finish-later flows.\n */\ndeclare const DEFAULT_STATUS_VALUE: \"available\";","HIDDEN_STATUSES":"/**\n * Statuses that are hidden from non-admin users\n */\ndeclare const HIDDEN_STATUSES: readonly [\"draft\", \"deleted\"];","ProxiedImageUrlSchema":"/**\n * Box-proxied image URL. Covers, avatars, thumbnails — every image in a\n * canvas widget MUST resolve through the box proxy.\n *\n * Accepted forms:\n * - `/proxy/...` — absolute proxy path on the same origin.\n * - `data:image/...` — inline data URI (agent-generated thumbnails).\n */\ndeclare const ProxiedImageUrlSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, \"Image URL must be box-proxied (/proxy/...) or an inline data:image URI.\">]>;","TECHNICAL_FIELD_NAMES":"/**\n * List of technical field names that are auto-generated by the backend\n * Includes backend-generated fields + status field\n *\n * These fields are optional in create schemas (backend creates them automatically).\n * They can be updated in update operations if provided.\n *\n * **Note**: Status is included here for visibility/editability logic but is NOT stripped\n * from form submissions since users MUST set it. Use BACKEND_GENERATED_FIELD_NAMES for stripping.\n *\n * @category Field Families\n * @constant TECHNICAL_FIELD_NAMES\n */\ndeclare const TECHNICAL_FIELD_NAMES: readonly [\"id\", \"createdAt\", \"updatedAt\", \"createdById\", \"updatedById\", \"status\"];","addressSchema":"declare const addressSchema: CustomSchemaGenerator;","arraySchema":"declare const arraySchema: CustomSchemaGenerator;","baseFields":"declare const baseFields: TypedBaseFields;","booleanSchema":"declare const booleanSchema: CustomSchemaGenerator;","clearSchemaGenerators":"/**\n * Clear all schema generators (testing)\n */\ndeclare function clearSchemaGenerators(): void;","clearScopeProviders":"/**\n * Clear all scope providers (for testing)\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearScopeProviders(): void;","createSchemas":"/**\n * Creates all operation-specific schemas from an entity definition\n *\n * Each schema field has `.visibility` attached for backend filtering.\n *\n * @param entity - Entity definition\n * @returns Operation-specific schemas with visibility metadata\n *\n * @example\n * ```typescript\n * const schemas = createSchemas(carEntity);\n * // schemas.create - for creating documents\n * // schemas.draft - for saving incomplete\n * // schemas.update - for partial updates\n * // schemas.get - for reading (includes technical fields)\n * // schemas.list - array of get\n * // schemas.delete - just { id }\n * ```\n */\ndeclare function createSchemas(entity: AnyEntity): OperationSchemas;","dateSchema":"declare const dateSchema: CustomSchemaGenerator;","defineEntity":"/**\n * Defines an entity with validation and default configuration\n *\n * Automatically adds technical fields (`id`, `createdAt`, `updatedAt`, `createdById`, `updatedById`)\n * with `visibility: 'technical'`. User-defined technical fields are merged with defaults, allowing\n * customization (e.g., `editable: 'admin'`, custom `label`, additional `validation`).\n *\n * @param entity - The business entity definition\n * @returns The validated and configured entity\n *\n * @example\n * ```typescript\n * export const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * },\n * // Customize technical field (optional)\n * createdAt: {\n * editable: 'admin',\n * label: 'Created Date'\n * }\n * },\n * // Override access defaults (optional)\n * access: { create: 'guest' } // Public inquiry form\n * });\n * ```\n *\n * **Technical Fields:**\n * - Automatically added: `id`, `createdAt`, `updatedAt`, `createdById`, `updatedById`, `status`\n * - Default: `visibility: 'technical'`, read-only in edit forms\n * - Customizable: Can override `editable`, `label`, `hint`, `validation` (merged with defaults)\n *\n * **Access Configuration:**\n * - Defaults: `{ read: 'guest', create: 'admin', update: 'admin', delete: 'admin' }`\n * - Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n * - Override individual operations: `access: { create: 'guest' }` for public forms\n * - Field visibility still applies for sensitive data filtering\n *\n * **Status Field (Draft/Publish/Delete):**\n * - Auto-added with `visibility: 'admin'` and options: `['draft', 'available', 'deleted']`\n * - Default value: `'available'` (new documents are published by default)\n * - `draft` and `deleted` statuses hidden from non-admin users (server-side filtering)\n * - `validation.required` on other fields only enforced when status !== 'draft'\n * - Extend options: `status: { validation: { options: [{ value: 'sold', label: 'sold' }] } }`\n * - Hide field: `status: { visibility: 'technical' }` if you don't want it in forms\n *\n * **Dropdown Options Format:**\n * - For `select`, `multiselect`, and `radio` field types, options must be defined in `validation.options`\n * - Options must be an array of objects with `value` (string) and `label` (string)\n * - Labels can use i18n keys (e.g., `'entities.product.status.active'`) for translation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineEntity<const F extends Record<string, EntityField>>(entity: Omit<BusinessEntity<F>, 'fields'> & {\n fields: F;\n}","detectBulkCollisions":"/**\n * Detects id collisions that must reject a bulk op before any write.\n *\n * Separated from the Valibot parse so the wire schema stays purely structural\n * and callers can surface a precise error (which ids, which pair). Pure, no\n * side effects — the caller throws.\n *\n * Collision rules (see `BULK_CRUD_TODO.md` §7):\n * - Same id in `updates` and `deletes` → ambiguous intent, reject.\n * - Same id in `inserts` (if the client supplies an explicit `id`) and\n * `updates` → ambiguous intent, reject.\n * - Inserts without an explicit id never collide (server mints the id).\n *\n * Checks run in order: `updates-deletes` first, then `inserts-updates`. The\n * first collision found short-circuits — one clear error per request.\n *\n * @param ops - The bulk ops to inspect. All three arrays are optional.\n * @returns A report; `where === null` means no collision.\n *\n * @example\n * import { detectBulkCollisions } from '@donotdev/schemas';\n *\n * detectBulkCollisions({ updates: [{ id: 'a', patch: {} }], deletes: ['a'] });\n * // => { collisions: ['a'], where: 'updates-deletes' }\n */\ndeclare function detectBulkCollisions(ops: {\n inserts?: Array<{\n id?: string;\n [k: string]: unknown;\n }>;\n updates?: Array<{\n id: string;\n patch: unknown;\n }>;\n deletes?: string[];\n}","emailSchema":"declare const emailSchema: CustomSchemaGenerator;","enhanceSchema":"/**\n * Enhances a Valibot schema with additional metadata.\n *\n * @param schema - The base Valibot schema\n * @param metadata - The metadata to attach\n * @returns The enhanced schema\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function enhanceSchema<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, metadata: SchemaMetadata): dndevSchema<T>;","fileSchema":"declare const fileSchema: CustomSchemaGenerator;","filesSchema":"declare const filesSchema: CustomSchemaGenerator;","gdprConsentSchema":"declare const gdprConsentSchema: CustomSchemaGenerator;","geopointSchema":"declare const geopointSchema: CustomSchemaGenerator;","getCollectionName":"/**\n * Gets the collection name from a schema\n *\n * @param schema - The schema to get the collection name from\n * @returns The collection name\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCollectionName(schema: dndevSchema<unknown>): string;","getRegisteredSchemaTypes":"/**\n * Get all registered schema types\n */\ndeclare function getRegisteredSchemaTypes(): string[];","getRegisteredScopeProviders":"/**\n * Get all registered scope provider names (for debugging)\n *\n * @returns Array of registered provider names\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRegisteredScopeProviders(): string[];","getSchemaType":"/**\n * Get Valibot schema for an entity field\n *\n * Priority order:\n * 1. field.validation?.schema (custom schema defined directly in entity)\n * 2. Registry lookup (built-in or registered custom types)\n * 3. Fallback to v.unknown() for unregistered types\n */\ndeclare function getSchemaType(field: EntityField<FieldType>): v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;","getScopeValue":"/**\n * Get the current scope value from a registered provider\n *\n * Used internally by CRUD operations to inject/filter by scope.\n *\n * @param providerName - Name of the registered provider\n * @returns Current scope ID, or null if not available\n *\n * @example\n * ```typescript\n * const companyId = getScopeValue('company');\n * if (!companyId) {\n * throw new Error('No company selected');\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function getScopeValue(providerName: string): string | null;","getWidget":"declare function getWidget(kind: string): RegisteredWidgetBase | undefined;","hasCustomSchemaGenerator":"/**\n * Check if a schema generator is registered\n */\ndeclare function hasCustomSchemaGenerator(type: string): boolean;","hasMetadata":"/**\n * Checks if an object has schema metadata (works with Valibot schemas)\n *\n * @param obj - The object to check\n * @returns Whether the object has schema metadata\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function hasMetadata(obj: unknown): obj is dndevSchema<unknown>;","hasScopeProvider":"/**\n * Check if a scope provider is registered\n *\n * @param providerName - Name of the provider to check\n * @returns True if provider is registered\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function hasScopeProvider(providerName: string): boolean;","ibanSchema":"declare const ibanSchema: CustomSchemaGenerator;","isBackendGeneratedField":"/**\n * Type guard to check if a field is backend-generated\n * @param fieldName - Field name to check\n * @returns True if field is auto-generated by backend\n *\n * @example\n * ```typescript\n * if (isBackendGeneratedField('createdAt')) {\n * // Field is backend-generated (should be stripped on create)\n * }\n * ```\n */\ndeclare function isBackendGeneratedField(fieldName: string): fieldName is BackendGeneratedField;","isFrameworkField":"/**\n * Type guard to check if a field name is a framework-managed field\n * @param fieldName - Field name to check\n * @returns True if field is in TECHNICAL_FIELD_NAMES\n *\n * @example\n * ```typescript\n * if (isFrameworkField('status')) {\n * // Field is framework-managed (cannot remove)\n * }\n * ```\n */\ndeclare function isFrameworkField(fieldName: string): fieldName is TechnicalField;","listWidgets":"declare function listWidgets(): readonly RegisteredWidgetBase[];","mapSchema":"declare const mapSchema: CustomSchemaGenerator;","multiselectSchema":"declare const multiselectSchema: CustomSchemaGenerator;","neverSchema":"declare const neverSchema: CustomSchemaGenerator;","numberSchema":"declare const numberSchema: CustomSchemaGenerator;","passwordSchema":"declare const passwordSchema: CustomSchemaGenerator;","pictureSchema":"declare const pictureSchema: CustomSchemaGenerator;","picturesSchema":"declare const picturesSchema: CustomSchemaGenerator;","priceSchema":"declare const priceSchema: CustomSchemaGenerator;","rangeOptions":"/**\n * Generates numeric range options for a select field.\n *\n * @param start - First number in the range\n * @param end - Last number in the range\n * @param step - Increment between numbers (default: 1)\n * @param descending - Whether to sort descending (default: false)\n * @returns Array of options with value and label\n *\n * @example\n * ```ts\n * // Quantities 1-10\n * options: rangeOptions(1, 10)\n *\n * // Percentages 0-100 by 10\n * options: rangeOptions(0, 100, 10)\n * ```\n */\ndeclare function rangeOptions(start: number, end: number, step?: number, descending?: boolean): SelectOption[];","referenceSchema":"declare const referenceSchema: CustomSchemaGenerator;","registerSchemaGenerator":"/**\n * Register a schema generator for a field type\n */\ndeclare function registerSchemaGenerator(type: string, generator: CustomSchemaGenerator): void;","registerScopeProvider":"/**\n * Register a scope provider function\n *\n * Call this once at app startup to register scope providers.\n * The provider function should return the current scope ID from your app's state.\n *\n * @param name - Provider name (e.g., 'company', 'tenant', 'workspace')\n * @param provider - Function that returns the current scope ID\n *\n * @example\n * ```typescript\n * // Using Zustand store\n * registerScopeProvider('company', () =>\n * useCurrentCompanyStore.getState().currentCompanyId\n * );\n *\n * // Using React context (via ref)\n * const companyIdRef = { current: null };\n * registerScopeProvider('company', () => companyIdRef.current);\n * // Update ref in your context provider\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function registerScopeProvider(name: string, provider: ScopeProviderFn): void;","registerUniqueConstraintValidator":"/**\n * Registers a validator for uniqueness constraints\n *\n * @param validator - The validator implementation\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function registerUniqueConstraintValidator(validator: UniqueConstraintValidator): void;","registerWidget":"declare function registerWidget(widget: RegisteredWidgetBase): void;","selectSchema":"declare const selectSchema: CustomSchemaGenerator;","stringSchema":"declare const stringSchema: CustomSchemaGenerator;","switchSchema":"declare const switchSchema: CustomSchemaGenerator;","telSchema":"declare const telSchema: CustomSchemaGenerator;","textSchema":"/**\n * Schema generators exported for unified registry\n * These are also auto-registered below for backward compatibility\n */\ndeclare const textSchema: CustomSchemaGenerator;","unregisterScopeProvider":"/**\n * Unregister a scope provider (for testing or cleanup)\n *\n * @param name - Provider name to unregister\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function unregisterScopeProvider(name: string): void;","urlSchema":"declare const urlSchema: CustomSchemaGenerator;","validateBlock":"/**\n * Validate an incoming canvas block end-to-end: envelope shape, kind is\n * in the allowlist, payload conforms to the widget's payload schema, and\n * (optionally) the widget's surface is reachable by the caller's access tier.\n *\n * Failure ordering: envelope → kind → payload → surface. Surface-rejection\n * reasons are prefixed `surface_forbidden: ` so callers can distinguish\n * policy rejection from schema rejection.\n */\ndeclare function validateBlock(block: unknown, opts?: ValidateBlockOptions): ValidateResult<CanvasBlock>;","validateDates":"/**\n * Recursively validates that all string values that look like potential dates\n * within an object adhere to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ).\n *\n * @param data - The object or data structure to validate\n * @param {string} [currentPath=''] - Internal tracking of the object path for error messages\n * @throws Error if any string resembling a date is not in the correct ISO format\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateDates(data: Record<string, unknown> | unknown[], currentPath?: string): void;","validateDocument":"/**\n * Validates a document against the schema, including uniqueness and custom validations.\n * @param schema - The enhanced schema.\n * @param data - The document data.\n * @param operation - 'create' or 'update'.\n * @param currentDocId - Optional current document ID for update operations.\n * @throws DoNotDevError if validation fails.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateDocument<T>(schema: dndevSchema<T>, data: Record<string, unknown>, operation: 'create' | 'update', currentDocId?: string): Promise<void>;","validateEvent":"declare function validateEvent(event: unknown, widgetKind: string): ValidateResult<CanvasEvent>;","validateUniqueFields":"/**\n * Validates unique fields for a document across environments.\n *\n * @param schema - The Valibot schema with metadata.\n * @param data - The document data.\n * @param currentDocId - Optional ID of the current document (for updates).\n * @throws Error if a unique constraint is violated.\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateUniqueFields<T>(schema: dndevSchema<T>, data: Record<string, unknown>, currentDocId?: string): Promise<void>;","BackendGeneratedField":"/** Type for backend-generated field names */\ntype BackendGeneratedField = (typeof BACKEND_GENERATED_FIELD_NAMES)[number];","BulkCollisionReport":"/**\n * Report returned by {@link detectBulkCollisions}.\n *\n * `where` identifies the first category of collision encountered. `collisions`\n * lists the offending ids for that category. Callers decide how to surface\n * this (the CRUD service throws; server handlers return 400).\n *\n * @since 0.2.0\n */\ninterface BulkCollisionReport {\n /** Ids that appear in both collided sets. Empty iff `where === null`. */\n collisions: string[];\n /** Which pair collided, or `null` when no collision was found. */\n where: 'updates-deletes' | 'inserts-updates' | null;\n}","BulkRequest":"/**\n * Inferred request type for the bulk endpoint.\n *\n * @example\n * import type { BulkRequest } from '@donotdev/schemas';\n *\n * const req: BulkRequest = { deletes: ['a'] };\n */\ntype BulkRequest = v.InferOutput<typeof BulkRequestSchema>;","BulkResponse":"/**\n * Inferred response type for the bulk endpoint.\n *\n * @example\n * import type { BulkResponse } from '@donotdev/schemas';\n *\n * const res: BulkResponse = { insertedIds: [], updatedIds: [], deletedIds: [] };\n */\ntype BulkResponse = v.InferOutput<typeof BulkResponseSchema>;","CustomSchemaGenerator":"/**\n * Schema generator function type\n */\ntype CustomSchemaGenerator = (field: EntityField<FieldType>) => v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> | null;","OperationSchemas":"/**\n * Operation-specific schemas generated from entity\n */\ninterface OperationSchemas {\n /** Create: excludes technical fields, enforces required */\n create: dndevSchema<unknown>;\n /** Draft: excludes technical fields, all optional except status='draft' */\n draft: dndevSchema<unknown>;\n /** Update: excludes technical fields, all optional */\n update: dndevSchema<unknown>;\n /** Get: includes all fields with visibility metadata */\n get: dndevSchema<unknown>;\n /** List: optimized for admin table (uses listFields) */\n list: dndevSchema<unknown>;\n /** ListCard: optimized for public cards (uses listCardFields, falls back to listFields) */\n listCard: dndevSchema<unknown>;\n /** Delete: just { id: string } */\n delete: dndevSchema<unknown>;\n}","RegisteredWidgetBase":"/**\n * A widget as it lives in the registry. Widened to accept an arbitrary\n * component attachment so the UI package can register React components\n * without this module importing React.\n */\ninterface RegisteredWidgetBase<Kind extends string = string, PayloadSchema extends AnyValibotSchema = AnyValibotSchema, Actions extends Record<string, AnyValibotSchema> = Record<string, AnyValibotSchema>> extends WidgetDef<Kind, PayloadSchema, Actions> {\n readonly component: unknown;\n}","SchemaWithVisibility":"/**\n * Valibot schema with visibility metadata attached\n */\ninterface SchemaWithVisibility extends v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> {\n visibility?: Visibility;\n}","ScopeProviderFn":"/**\n * Function that returns the current scope ID from app state\n * Returns null if no scope is currently selected (e.g., no company selected)\n */\ntype ScopeProviderFn = () => string | null;","SelectOption":"/** Standard option format for select fields */\ninterface SelectOption {\n value: string;\n label: string;\n}","StatusField":"/** Type for the status field */\ntype StatusField = 'status';","TechnicalField":"/** Type for all technical field names */\ntype TechnicalField = (typeof TECHNICAL_FIELD_NAMES)[number];","TypedBaseFields":"/**\n * Type-safe base fields that all entities inherit\n * Each field has its specific type for proper TypeScript inference\n */\ninterface TypedBaseFields {\n id: EntityField<'text'>;\n createdAt: EntityField<'timestamp'>;\n updatedAt: EntityField<'timestamp'>;\n createdById: EntityField<'reference'>;\n updatedById: EntityField<'reference'>;\n status: EntityField<'select'>;\n}","ValidateResult":"type ValidateResult<T> = {\n readonly ok: true;\n readonly value: T;\n readonly widget: RegisteredWidgetBase;\n}","AppConfigContext":"/**\n * Application configuration context\n * @internal - Use `useAppConfig()` hook instead of accessing context directly\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AppConfigContext: react.Context<AppConfig | null>;","AppConfigProvider":"/**\n * AppConfigProvider\n *\n * Centralized configuration provider with smart defaults and platform awareness.\n * Handles all configuration merging in one place - no prop drilling needed.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Minimal - uses all defaults\n * <AppConfigProvider platform=\"vite\">\n * <App />\n * </AppConfigProvider>\n *\n * // Partial override\n * <AppConfigProvider\n * config={{ app: { name: 'My App' } }}\n * platform=\"vite\"\n * >\n * <App />\n * </AppConfigProvider>\n * ```\n */\ndeclare function AppConfigProvider({ config, platform, children, }","AuthSessionProvider":"/**\n * Provides the request's auth session snapshot (`null` = unknown).\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function AuthSessionProvider({ snapshot, children, }","QueryProviders":"/**\n * QueryProviders - TanStack Query Provider Component\n *\n * Wraps your app with TanStack Query (React Query) context.\n * Provides QueryClient with SSR safety and configurable cache defaults.\n *\n * **SSR Safety:**\n * - Uses getQueryClient() which creates new instance on server per-request\n * - Reuses singleton on client for cache persistence\n *\n * **Configuration:**\n * - Reads `query` config from `AppConfig` if available\n * - Applies config to QueryClient defaults\n * - Config is applied on first call (browser singleton)\n *\n * ⚠️ OPTIONAL: Only use this if your app needs CRUD operations\n * React Query is a large package - don't load it unless needed!\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const QueryProviders: React.ComponentType<{\n children: ReactNode;\n}","getQueryClient":"/**\n * Get or create QueryClient (SSR-safe)\n *\n * - Server: Always creates new instance (per-request isolation)\n * - Browser: Reuses singleton (cache persistence)\n *\n * @version 0.1.0\n * @since 0.0.3\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // In your root layout/provider\n * function Providers({ children }) {\n * const queryClient = getQueryClient();\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * </QueryClientProvider>\n * );\n * }\n * ```\n */\ndeclare function getQueryClient(queryConfig?: QueryConfig): QueryClient;","useAppConfig":"/**\n * useAppConfig hook\n *\n * Access the complete application configuration or a specific property.\n *\n * @example\n * ```tsx\n * // Get full config\n * const config = useAppConfig();\n * console.log(config.app?.name);\n *\n * // Get app metadata object\n * const app = useAppConfig('app');\n *\n * // Get specific property (shorthand)\n * const url = useAppConfig('url');\n * const name = useAppConfig('name');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAppConfig(): AppConfig;","useAuthConfig":"/**\n * useAuthConfig hook\n *\n * Access authentication routes with defaults.\n *\n * @example\n * ```tsx\n * const auth = useAuthConfig();\n * navigate(auth.authRoute); // Always has default\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAuthConfig(): AuthConfig;","useAuthSessionSnapshot":"/**\n * The request's auth session snapshot, or `null` when the cookies cannot tell\n * (no provider, or an auth provider that does not keep its session in cookies).\n * Display only, and only meaningful until the auth provider is ready.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAuthSessionSnapshot(): AuthSessionSnapshot | null;","useBreathingTimer":"/**\n * Hook for managing a breathing timer with wake lock support\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useBreathingTimer({ duration, onComplete, }","useClickOutside":"/**\n * useClickOutside - Outside Click Detection Hook\n *\n * High-performance hook for detecting clicks outside of elements with support\n * for multiple elements and configurable event types. Perfect for dropdowns,\n * modals, and popover components.\n *\n * @param callback - Function to call when clicking outside\n * @param options - Configuration options for click outside detection\n * @returns Object containing ref and click outside state\n *\n * @example Basic dropdown\n * ```tsx\n * function Dropdown() {\n * const [isOpen, setIsOpen] = useState(false);\n * const { ref } = useClickOutside(() => setIsOpen(false));\n *\n * return (\n * <div className=\"relative\">\n * <button onClick={() => setIsOpen(!isOpen)}>\n * Toggle\n * </button>\n * {isOpen && (\n * <div className=\"absolute top-full left-0 bg-white shadow-lg\">\n * Dropdown content\n * </div>\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Modal with outside click\n * ```tsx\n * function Modal({ isOpen, onClose, children }) {\n * const { ref } = useClickOutside(onClose, {\n * enabled: isOpen\n * });\n *\n * if (!isOpen) return null;\n *\n * return (\n * <div className=\"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center\">\n * <div className=\"bg-white p-6 rounded-lg\">\n * {children}\n * </div>\n * </div>\n * );\n * }\n * ```\n *\n * @example Multiple elements\n * ```tsx\n * function ComplexComponent() {\n * const [isOpen, setIsOpen] = useState(false);\n * const triggerRef = useRef<HTMLButtonElement>(null);\n * const { ref } = useClickOutside(() => setIsOpen(false), {\n * ignoreElements: [triggerRef.current]\n * });\n *\n * return (\n * <div>\n * <button ref={triggerRef} onClick={() => setIsOpen(!isOpen)}>\n * Toggle\n * </button>\n * {isOpen && (\n * <div className=\"popover\">\n * Content\n * </div>\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Custom events\n * ```tsx\n * function CustomEvents() {\n * const { ref } = useClickOutside(() => console.log('Outside click'), {\n * events: ['mousedown', 'keydown'],\n * enabled: true\n * });\n *\n * return (\n * <div>\n * Click outside or press any key\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useClickOutside(callback: () => void, options?: UseClickOutsideOptions): UseClickOutsideReturn;","useDebounce":"/**\n * useDebounce - Debounced Value Management Hook\n *\n * High-performance hook for debouncing values with configurable delay and\n * immediate execution options. Perfect for search inputs, API calls, and\n * expensive computations.\n *\n * @template T - Type of the value being debounced\n * @param value - Value to debounce\n * @param options - Configuration options for debouncing\n * @returns Debounced value\n *\n * @example Search input debouncing\n * ```tsx\n * function SearchInput() {\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebounce(query, { delay: 300 });\n *\n * useEffect(() => {\n * if (debouncedQuery) {\n * // Perform search API call\n * searchAPI(debouncedQuery);\n * }\n * }, [debouncedQuery]);\n *\n * return (\n * <input\n * type=\"text\"\n * value={query}\n * onChange={(e) => setQuery(e.target.value)}\n * placeholder=\"Search...\"\n * />\n * );\n * }\n * ```\n *\n * @example API call debouncing\n * ```tsx\n * function ApiComponent() {\n * const [data, setData] = useState(null);\n * const [loading, setLoading] = useState(false);\n * const debouncedId = useDebounce(id, { delay: 500 });\n *\n * useEffect(() => {\n * if (debouncedId) {\n * setLoading(true);\n * fetchData(debouncedId).then(setData).finally(() => setLoading(false));\n * }\n * }, [debouncedId]);\n *\n * return (\n * <div>\n * {loading && <Spinner />}\n * {data && <DataDisplay data={data} />}\n * </div>\n * );\n * }\n * ```\n *\n * @example Form validation debouncing\n * ```tsx\n * function FormInput() {\n * const [value, setValue] = useState('');\n * const [error, setError] = useState('');\n * const debouncedValue = useDebounce(value, { delay: 300 });\n *\n * useEffect(() => {\n * if (debouncedValue) {\n * validateInput(debouncedValue).then(setError);\n * }\n * }, [debouncedValue]);\n *\n * return (\n * <div>\n * <input\n * value={value}\n * onChange={(e) => setValue(e.target.value)}\n * className={error ? 'border-red-500' : 'border-gray-300'}\n * />\n * {error && <p className=\"text-red-500\">{error}</p>}\n * </div>\n * );\n * }\n * ```\n *\n * @example Immediate execution\n * ```tsx\n * function ImmediateDebounce() {\n * const [value, setValue] = useState('');\n * const debouncedValue = useDebounce(value, {\n * delay: 200,\n * immediate: true\n * });\n *\n * // Executes immediately on first call, then debounces\n * useEffect(() => {\n * console.log('Value changed:', debouncedValue);\n * }, [debouncedValue]);\n *\n * return (\n * <input\n * value={value}\n * onChange={(e) => setValue(e.target.value)}\n * />\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useDebounce<T>(value: T, options?: UseDebounceOptions): T;","useEventListener":"/**\n * useEventListener - Enterprise-Grade Event Listener Hook\n *\n * Uses React's battle-tested useEffect pattern.\n * Boring code that just works.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param eventType - Type of event to listen for\n * @param handler - Event handler function\n * @param options - Configuration options for event listener\n * @returns Object containing listener state\n *\n * @example Basic usage\n * ```tsx\n * function WindowEvent() {\n * const [scrollY, setScrollY] = useState(0);\n *\n * useEventListener('scroll', () => {\n * setScrollY(window.scrollY);\n * });\n *\n * return <p>Scroll position: {scrollY}px</p>;\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useEventListener<TEvent extends Event = Event, TTarget extends EventTarget = Window>(eventType: string, handler: (event: TEvent) => void, options?: UseEventListenerOptions<TTarget>): UseEventListenerReturn;","useFaviconConfig":"/**\n * useFaviconConfig hook\n *\n * Access favicon configuration.\n *\n * @example\n * ```tsx\n * const favicon = useFaviconConfig();\n * if (!favicon) return null;\n * return <meta name=\"theme-color\" content={favicon.themeColor} />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFaviconConfig(): FaviconConfig | false | undefined;","useFeaturesConfig":"/**\n * useFeaturesConfig hook\n *\n * Access feature flags with defaults.\n *\n * @example\n * ```tsx\n * const features = useFeaturesConfig();\n * if (features.debug) return <DebugTools />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFeaturesConfig(): FeaturesConfig;","useIntersectionObserver":"/**\n * useIntersectionObserver - Basic Intersection Observation Hook (React 19 Optimized)\n *\n * Lightweight hook for basic intersection observation with optimal performance.\n * Uses React 19's useSyncExternalStore pattern for automatic cleanup, proper\n * SSR handling, and tearing prevention in concurrent rendering.\n *\n * @param options - Configuration options for intersection observation\n * @returns Object containing ref, isIntersecting state, and entry\n *\n * @example Basic intersection detection\n * ```tsx\n * function IntersectionComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver();\n *\n * return (\n * <div ref={ref} className={isIntersecting ? 'visible' : 'hidden'}>\n * Content that appears when intersecting\n * </div>\n * );\n * }\n * ```\n *\n * @example With custom threshold\n * ```tsx\n * function ThresholdComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({\n * threshold: 0.5,\n * rootMargin: '50px'\n * });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting ? '50% visible' : 'Not visible enough'}\n * </div>\n * );\n * }\n * ```\n *\n * @example Once-only triggering (React 19 optimized)\n * ```tsx\n * function OnceComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({ once: true });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting && <ExpensiveComponent />}\n * </div>\n * );\n * }\n * ```\n *\n * @example SSR-safe implementation\n * ```tsx\n * function SSRComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({\n * fallbackIntersecting: true // Shows content during SSR\n * });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting ? 'Client-side' : 'SSR fallback'}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useIntersectionObserver<T extends Element = Element>(options?: UseIntersectionObserverOptions): UseIntersectionObserverReturn<T>;","useIsClient":"/**\n\n * SSR-safe React hook for client detection\n\n * Uses useSyncExternalStore to prevent hydration mismatches in Next.js\n\n *\n\n * Use this in React components instead of isClient() to avoid hydration errors.\n\n * For non-React code (stores, utils), use isClient() function from @donotdev/utils.\n\n *\n\n * @returns boolean indicating if running in browser/client environment\n\n *\n\n * @example\n\n * ```tsx\n\n * function MyComponent() {\n\n * const isClient = useIsClient();\n\n * if (!isClient) return null;\n\n * return <div>Client-only content</div>;\n\n * }\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n * @author AMBROISE PARK Consulting\n\n */\ndeclare function useIsClient(): boolean;","useLocalStorage":"/**\n * useLocalStorage - Local Storage Management Hook\n *\n * High-performance hook for managing localStorage with type safety and SSR support.\n * Perfect for persisting user preferences, settings, and application state.\n *\n * @param key - localStorage key\n * @param options - Configuration options for localStorage management\n * @returns Object containing value, setters, and status\n *\n * @example Basic usage\n * ```tsx\n * function Preferences() {\n * const { value: theme, setValue: setTheme } = useLocalStorage('theme', {\n * defaultValue: 'light'\n * });\n *\n * return (\n * <div>\n * <p>Current theme: {theme}</p>\n * <button onClick={() => setTheme('dark')}>\n * Switch to dark\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * @example Complex object storage\n * ```tsx\n * function UserSettings() {\n * const { value: settings, setValue: setSettings } = useLocalStorage('userSettings', {\n * defaultValue: {\n * notifications: true,\n * language: 'en',\n * fontSize: 14\n * }\n * });\n *\n * const updateSetting = (key: string, value: any) => {\n * setSettings(prev => ({ ...prev, [key]: value }));\n * };\n *\n * return (\n * <div>\n * <label>\n * <input\n * type=\"checkbox\"\n * checked={settings.notifications}\n * onChange={(e) => updateSetting('notifications', e.target.checked)}\n * />\n * Notifications\n * </label>\n * </div>\n * );\n * }\n * ```\n *\n * @example Array storage\n * ```tsx\n * function TodoList() {\n * const { value: todos, setValue: setTodos } = useLocalStorage('todos', {\n * defaultValue: []\n * });\n *\n * const addTodo = (text: string) => {\n * setTodos(prev => [...prev, { id: Date.now(), text, completed: false }]);\n * };\n *\n * return (\n * <div>\n * {todos.map(todo => (\n * <div key={todo.id}>{todo.text}</div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Custom serializer\n * ```tsx\n * function CustomStorage() {\n * const { value: data, setValue: setData } = useLocalStorage('customData', {\n * defaultValue: { count: 0 },\n * serializer: {\n * serialize: (value) => btoa(JSON.stringify(value)),\n * deserialize: (value) => JSON.parse(atob(value))\n * }\n * });\n *\n * return (\n * <div>\n * <p>Count: {data.count}</p>\n * <button onClick={() => setData(prev => ({ count: prev.count + 1 }))}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * @example SSR-safe implementation\n * ```tsx\n * function SSRComponent() {\n * const { value: user, setValue: setUser, isLoaded } = useLocalStorage('user', {\n * defaultValue: null,\n * syncAcrossTabs: true\n * });\n *\n * if (!isLoaded) {\n * return <div>Loading...</div>;\n * }\n *\n * return (\n * <div>\n * {user ? `Welcome ${user.name}` : 'Please login'}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLocalStorage<T>(key: string, options: UseLocalStorageOptions<T>): UseLocalStorageReturn<T>;","useMutation":"declare function useMutation<TData = unknown, TError = Error, TVariables = void, TContext = unknown>(options: UseMutationOptionsWithErrorHandling<TData, TError, TVariables, TContext>): UseMutationResult<TData, TError, TVariables, TContext>;","useQuery":"declare function useQuery<TData = unknown, TError = Error>(options: UseQueryOptionsWithErrorHandling<TData, TError>): UseQueryResult<TData, TError>;","useScriptLoader":"/**\n * useScriptLoader - External Script Loading Hook\n *\n * High-performance hook for loading external scripts with proper error handling,\n * retry logic, and cleanup. Perfect for loading third-party SDKs like Google,\n * Stripe, analytics, or any external JavaScript libraries.\n *\n * @param src - Script source URL\n * @param options - Configuration options for script loading\n * @returns Object containing loading state, error, and control functions\n *\n * @example Basic script loading\n * ```tsx\n * function GoogleAnalytics() {\n * const { isLoading, isLoaded, error } = useScriptLoader(\n * 'https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID'\n * );\n *\n * if (isLoading) return <div>Loading Google Analytics...</div>;\n * if (error) return <div>Failed to load: {error.message}</div>;\n * if (isLoaded) return <div>Google Analytics loaded!</div>;\n *\n * return null;\n * }\n * ```\n *\n * @example Advanced configuration\n * ```tsx\n * function StripeIntegration() {\n * const { isLoading, isLoaded, error, retry } = useScriptLoader(\n * 'https://js.stripe.com/v3/',\n * {\n * loadOnIdle: true,\n * retry: true,\n * retryAttempts: 5,\n * timeout: 15000,\n * onLoad: () => console.log('Stripe loaded'),\n * onError: (error) => console.error('Stripe failed:', error),\n * attributes: {\n * 'data-stripe-publishable-key': 'pk_test_...'\n * }\n * }\n * );\n *\n * return (\n * <div>\n * {isLoading && <Spinner />}\n * {error && (\n * <div>\n * <p>Failed to load Stripe</p>\n * <button onClick={retry}>Retry</button>\n * </div>\n * )}\n * {isLoaded && <StripeCheckout />}\n * </div>\n * );\n * }\n * ```\n *\n * @example Conditional loading\n * ```tsx\n * function ConditionalScript() {\n * const [shouldLoad, setShouldLoad] = useState(false);\n *\n * const { isLoading, isLoaded } = useScriptLoader(\n * 'https://example.com/script.js',\n * {\n * enabled: shouldLoad,\n * loadOnIdle: true\n * }\n * );\n *\n * return (\n * <div>\n * <button onClick={() => setShouldLoad(true)}>\n * Load Script\n * </button>\n * {isLoading && <div>Loading...</div>}\n * {isLoaded && <div>Script ready!</div>}\n * </div>\n );\n * }\n * ```\n *\n * @example Custom loaded check\n * ```tsx\n * function CustomScript() {\n * const { isLoaded } = useScriptLoader(\n * 'https://accounts.google.com/gsi/client',\n * {\n * isLoaded: () => !!window.google?.accounts?.id,\n * onLoad: () => console.log('Google Identity Services ready')\n * }\n * );\n *\n * return isLoaded ? <GoogleSignIn /> : <div>Loading Google...</div>;\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useScriptLoader(src: string, options?: UseScriptLoaderOptions): UseScriptLoaderReturn;","useSeoConfig":"/**\n * useSeoConfig hook\n *\n * Access SEO configuration.\n *\n * @example\n * ```tsx\n * const seo = useSeoConfig();\n * if (!seo) return null; // Disabled\n * return <meta property=\"og:image\" content={seo.defaultImage} />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useSeoConfig(): SEOConfig | false | undefined;","useViewportVisibility":"/**\n * useViewportVisibility - Advanced Viewport Detection Hook\n *\n * High-performance hook for advanced viewport visibility tracking with item-level detection.\n * Perfect for complex animations, staggered reveals, and dynamic scroll-based effects.\n *\n * @param options - Configuration options for viewport visibility tracking\n * @returns Object containing ref, visibility state, and item tracking utilities\n *\n * @example Staggered animations (Reveal component)\n * ```tsx\n * function StaggeredAnimation() {\n * const { ref, isVisible, visibleItems, isItemVisible } = useViewportVisibility({\n * threshold: 0.1,\n * trackItems: true,\n * enableScrollListener: true\n * });\n *\n * return (\n * <div>\n * {items.map((item, index) => (\n * <div\n * key={index}\n * className={`transition-all duration-500 ${\n * isItemVisible(index) ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'\n * }`}\n * style={{ transitionDelay: `${index * 100}ms` }}\n * >\n * {item}\n * </div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Progressive reveal (StackedCards)\n * ```tsx\n * function ProgressiveReveal() {\n * const { ref, visibleItems } = useViewportVisibility({\n * threshold: 0.3,\n * rootMargin: '-70% 0px -30% 0px',\n * trackItems: true\n * });\n *\n * return (\n * <div>\n * {cards.map((card, index) => (\n * <div\n * key={index}\n * className={`card ${visibleItems.has(index) ? 'revealed' : 'hidden'}`}\n * >\n * {card}\n * </div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Lazy loading with scroll optimization\n * ```tsx\n * function LazyLoadSection() {\n * const { ref, isVisible, visibleItems } = useViewportVisibility({\n * threshold: 0.1,\n * trackItems: true,\n * enableScrollListener: true,\n * once: false // Allow re-triggering\n * });\n *\n * return (\n * <div>\n * {isVisible ? (\n * <ExpensiveComponent />\n * ) : (\n * <div className=\"h-96 bg-gray-200 dndev-animate-pulse\" />\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Scroll-triggered effects\n * ```tsx\n * function ScrollTrigger() {\n * const { ref, isVisible, visibleItems } = useViewportVisibility({\n * threshold: 0.5,\n * rootMargin: '50px',\n * trackItems: false,\n * enableScrollListener: true\n * });\n *\n * return (\n * <div className=\"scroll-trigger\">\n * {isVisible && <AnimatedContent />}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useViewportVisibility(options?: UseViewportVisibilityOptions): UseViewportVisibilityReturn;","AppConfigProviderProps":"/**\n * App config provider props interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppConfigProviderProps {\n /** User-provided configuration (merged with smart defaults) */\n config?: AppConfig;\n /** Platform for platform-specific defaults */\n platform?: Platform;\n /** Child components */\n children: ReactNode;\n}","UseClickOutsideOptions":"/**\n * Options for useClickOutside hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseClickOutsideOptions {\n /**\n * Event types to listen for\n * @default ['mousedown', 'touchstart']\n */\n events?: string[];\n /**\n * Whether the hook is enabled\n * @default true\n */\n enabled?: boolean;\n /**\n * Additional elements to ignore (e.g., triggers)\n */\n ignoreElements?: (Element | null)[];\n}","UseClickOutsideReturn":"/**\n * Return type for useClickOutside hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseClickOutsideReturn {\n /**\n * Ref to attach to the element to monitor\n */\n ref: React.RefObject<HTMLElement | null>;\n /**\n * Whether the element is currently being clicked outside\n */\n isClickOutside: boolean;\n}","UseDebounceOptions":"/**\n * Options for useDebounce hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseDebounceOptions<T = any> {\n /**\n * Debounce delay in milliseconds\n * @default 500\n */\n delay?: number;\n /**\n * Whether to execute immediately on first call\n * @default false\n */\n immediate?: boolean;\n /**\n * Initial value for SSR\n */\n initialValue?: T;\n}","UseEventListenerOptions":"/**\n * Options for useEventListener hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseEventListenerOptions<TTarget extends EventTarget = Window> {\n /**\n * Whether the event listener is enabled\n * @default true\n */\n enabled?: boolean;\n /**\n * Event listener options\n * @default { passive: true }\n */\n options?: AddEventListenerOptions;\n /**\n * Element to attach listener to\n * @default window\n */\n target?: TTarget | null;\n}","UseEventListenerReturn":"/**\n * Return type for useEventListener hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseEventListenerReturn {\n /**\n * Whether the event listener is active\n */\n isActive: boolean;\n}","UseIntersectionObserverOptions":"/**\n * Options for useIntersectionObserver hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseIntersectionObserverOptions {\n threshold?: number | number[];\n root?: Element | null;\n rootMargin?: string;\n once?: boolean;\n fallbackIntersecting?: boolean;\n}","UseIntersectionObserverReturn":"/**\n * Return type for useIntersectionObserver hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseIntersectionObserverReturn<T extends Element = Element> {\n ref: React.RefObject<T | null>;\n isIntersecting: boolean;\n hasTriggered: boolean;\n entry: IntersectionObserverEntry | null;\n}","UseLocalStorageOptions":"/**\n * Options for useLocalStorage hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseLocalStorageOptions<T> {\n /**\n * Default value for SSR or when key doesn't exist\n */\n defaultValue: T;\n /**\n * Whether to sync with other tabs\n * @default true\n */\n syncAcrossTabs?: boolean;\n /**\n * Custom serializer function\n */\n serializer?: {\n serialize: (value: T) => string;\n deserialize: (value: string) => T;\n };\n}","UseLocalStorageReturn":"/**\n * Return type for useLocalStorage hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseLocalStorageReturn<T> {\n /**\n * Current value from localStorage\n */\n value: T;\n /**\n * Set value in localStorage\n */\n setValue: (value: T | ((prev: T) => T)) => void;\n /**\n * Remove value from localStorage\n */\n removeValue: () => void;\n /**\n * Whether the value is loaded from localStorage\n */\n isLoaded: boolean;\n /**\n * Whether localStorage is available\n */\n isAvailable: boolean;\n}","UseMutationOptionsWithErrorHandling":"/**\n * Enhanced useMutation hook with framework defaults and error handling\n *\n * **Framework Defaults Applied:**\n * - `retry: 1` (one retry attempt on failure)\n * - `retryDelay: exponential backoff` (1s, 2s, 4s, ... max 30s)\n *\n * **Error Handling:**\n * - Errors are automatically wrapped with handleError()\n * - User-friendly error messages\n * - Optional notification display\n *\n * @template TData - Mutation data type\n * @template TError - Error type (defaults to Error)\n * @template TVariables - Variables type\n * @template TContext - Context type for optimistic updates\n * @param options - Mutation options (framework defaults merged with user options)\n * @returns Mutation result with reactive loading states\n *\n * @example\n * ```tsx\n * const { mutate, isPending, error } = useMutation({\n * mutationFn: (data) => createUser(data),\n * });\n * ```\n *\n * @example\n * ```tsx\n * // With custom error handling\n * const { mutate } = useMutation({\n * mutationFn: (data) => createUser(data),\n * userMessage: 'Failed to create user',\n * showNotification: true,\n * onError: (error) => {\n * console.error('Custom error handler', error);\n * },\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseMutationOptionsWithErrorHandling<TData, TError = Error, TVariables = void, TContext = unknown> extends UseMutationOptions<TData, TError, TVariables, TContext> {\n /** User-friendly error message (optional) */\n userMessage?: string;\n /** Show toast notification on error (default: false) */\n showNotification?: boolean;\n}","UseQueryOptionsWithErrorHandling":"/**\n * Enhanced useQuery hook with framework defaults and error handling\n *\n * **Framework Defaults Applied:**\n * - `staleTime: Infinity` (data never becomes stale - manual refresh only)\n * - `retry: 1` (one retry attempt on failure)\n * - `refetchOnWindowFocus: false` (no automatic refetch on focus)\n * - `refetchOnReconnect: false` (no automatic refetch on reconnect)\n *\n * **Error Handling:**\n * - Errors are automatically wrapped with handleError()\n * - User-friendly error messages\n * - Optional notification display\n *\n * **SSR Safety:**\n * - Automatically disables queries on server if `ssr: false` is set\n * - Preserves SSR behavior by default\n *\n * @template TData - Query data type\n * @template TError - Error type (defaults to Error)\n * @param options - Query options (framework defaults merged with user options)\n * @returns Query result with reactive loading states\n *\n * @example\n * ```tsx\n * const { data, isLoading, error } = useQuery({\n * queryKey: ['users', userId],\n * queryFn: () => fetchUser(userId),\n * });\n * ```\n *\n * @example\n * ```tsx\n * // With custom error handling\n * const { data } = useQuery({\n * queryKey: ['users', userId],\n * queryFn: () => fetchUser(userId),\n * userMessage: 'Failed to load user',\n * showNotification: true,\n * onError: (error) => {\n * console.error('Custom error handler', error);\n * },\n * });\n * ```\n *\n * @example\n * ```tsx\n * // Disable SSR for client-only queries\n * const { data } = useQuery({\n * queryKey: ['client-only'],\n * queryFn: () => fetchClientData(),\n * ssr: false, // Won't run on server\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseQueryOptionsWithErrorHandling<TData, TError = Error> extends UseQueryOptions<TData, TError> {\n /** User-friendly error message (optional) */\n userMessage?: string;\n /** Show toast notification on error (default: false) */\n showNotification?: boolean;\n /** Disable query on server (default: false, preserves SSR) */\n ssr?: boolean;\n /** Custom error handler (optional) */\n onError?: (error: TError) => void;\n}","UseScriptLoaderOptions":"/**\n * Options for useScriptLoader hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseScriptLoaderOptions {\n /**\n * Whether the script should be loaded\n * @default true\n */\n enabled?: boolean;\n /**\n * Whether to load script immediately or wait for idle\n * @default false (load immediately)\n */\n loadOnIdle?: boolean;\n /**\n * Timeout for script loading in milliseconds\n * @default 10000 (10 seconds)\n */\n timeout?: number;\n /**\n * Whether to retry on failure\n * @default true\n */\n retry?: boolean;\n /**\n * Number of retry attempts\n * @default 3\n */\n retryAttempts?: number;\n /**\n * Delay between retries in milliseconds\n * @default 1000 (1 second)\n */\n retryDelay?: number;\n /**\n * CSP nonce for script security\n */\n nonce?: string;\n /**\n * Script attributes\n */\n attributes?: Record<string, string>;\n /**\n * Callback when script loads successfully\n */\n onLoad?: () => void;\n /**\n * Callback when script fails to load\n */\n onError?: (error: Error) => void;\n /**\n * Whether to check if script is already loaded\n * @default true\n */\n checkExisting?: boolean;\n /**\n * Function to check if script is already available\n * @default checks for script.src in document\n */\n isLoaded?: () => boolean;\n /**\n * Manual loading mode - script only loads when load() is called\n * @default false (auto-load when enabled)\n */\n manual?: boolean;\n}","UseScriptLoaderReturn":"/**\n * Return type for useScriptLoader hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseScriptLoaderReturn {\n /**\n * Whether the script is currently loading\n */\n isLoading: boolean;\n /**\n * Whether the script has loaded successfully\n */\n isLoaded: boolean;\n /**\n * Error if script loading failed\n */\n error: Error | null;\n /**\n * Whether the script is ready to use\n */\n isReady: boolean;\n /**\n * Manually trigger script loading\n */\n load: () => void;\n /**\n * Manually retry loading\n */\n retry: () => void;\n /**\n * Reset loading state\n */\n reset: () => void;\n /**\n * Whether load() has been called (tracks manual trigger)\n */\n loadTriggered: boolean;\n}","UseViewportVisibilityOptions":"/**\n * Options for useViewportVisibility hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseViewportVisibilityOptions {\n /**\n * Intersection threshold (0-1)\n * @default 0.1\n */\n threshold?: number;\n /**\n * Root margin for intersection observer\n * @default '50px'\n */\n rootMargin?: string;\n /**\n * Whether to trigger only once\n * @default false\n */\n once?: boolean;\n /**\n * Whether to track individual items\n * @default true\n */\n trackItems?: boolean;\n /**\n * Whether to enable scroll listener for item tracking\n * @default true\n */\n enableScrollListener?: boolean;\n}","UseViewportVisibilityReturn":"/**\n * Return type for useViewportVisibility hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseViewportVisibilityReturn {\n /**\n * Ref to attach to the container element\n */\n ref: React.RefObject<HTMLDivElement | null>;\n /**\n * Whether the container is visible\n */\n isVisible: boolean;\n /**\n * Whether the container has been triggered at least once\n */\n hasTriggered: boolean;\n /**\n * Set of visible item indices\n */\n visibleItems: Set<number>;\n /**\n * Whether a specific item is visible\n */\n isItemVisible: (index: number) => boolean;\n}","COUNTRIES":"declare const COUNTRIES: readonly CountryData[];","FAQSection":"/**\n * FAQSection component for displaying frequently asked questions\n * Handles translations internally using translateObjectArray\n *\n * @example\n * // Basic usage\n * const { t } = useTranslation(['faq']);\n * <FAQSection t={t} keyPrefix=\"faqs.items\" maxIndex={30} />\n *\n * @example\n * // With custom styling\n * <FAQSection\n * t={t}\n * keyPrefix=\"faqs.items\"\n * maxIndex={30}\n * className=\"mx-auto\" style={{ maxWidth: '56rem' }}\n * aria-label=\"Frequently Asked Questions\"\n * />\n */\ndeclare function FAQSection({ t, keyPrefix, maxIndex, className, 'aria-label': ariaLabel, }","Flag":"declare function Flag({ code, className, style, title, }","LANGUAGES":"/**\n * Complete language data array with all information\n * Single source of truth for all language-related data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LANGUAGES: readonly LanguageData[];","LanguageFAB":"/**\n * Fixed floating language pill (top-end) with dropdown selector.\n *\n * - **0-1 languages:** Hidden\n * - **2 languages:** Tapping toggles directly\n * - **3+ languages:** Dropdown menu\n *\n * @example\n * ```tsx\n * <LanguageFAB />\n * <LanguageFAB format=\"native\" showFlag={false} />\n * ```\n *\n * @public\n */\ndeclare const LanguageFAB: ({ \"aria-label\": ariaLabel, className, showFlag, showFlags, format, }","LanguageSelector":"/**\n * Header/nav language selector with dropdown presentation.\n *\n * Adapts to the number of available languages:\n * - **0-1 languages:** Hidden\n * - **2 languages:** Toggle button (swap on click)\n * - **3+ languages:** Dropdown menu\n *\n * For mobile-first bottom sheet selection, use `LanguageFAB` instead.\n *\n * @example\n * ```tsx\n * // Basic dropdown (compact)\n * <LanguageSelector />\n *\n * // Dropdown with flags and names\n * <LanguageSelector\n * showFlags={true}\n * showNames={true}\n * className=\"custom-class\"\n * />\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LanguageSelector: ({ display, variant, showFlags, showNames, className, }","LanguageToggleGroup":"/**\n * Inline segmented toggle buttons for language selection.\n *\n * Compact button group — each language gets a button, active one is highlighted.\n * For mobile-first bottom sheet selection, use `LanguageFAB` instead.\n *\n * @example\n * ```tsx\n * // Basic horizontal toggle\n * <LanguageToggleGroup\n * languages={['en', 'es', 'fr']}\n * orientation=\"horizontal\"\n * />\n *\n * // Vertical with flags and names\n * <LanguageToggleGroup\n * languages={['en', 'es', 'fr', 'de']}\n * orientation=\"vertical\"\n * showFlags={true}\n * showNames={true}\n * />\n *\n * // Compact header style\n * <LanguageToggleGroup\n * languages={['en', 'es']}\n * variant=\"ghost\"\n * />\n * ```\n *\n * @public\n */\ndeclare const LanguageToggleGroup: ({ languages, orientation, size, showFlags, showNames, className, showLoading, variant, }","RequestLanguageProvider":"/**\n * Provides the request language to `useTranslation` for the server render and the\n * client's hydration pass. Rendered by the Next providers with the language resolved\n * from the request (language cookie, Accept-Language); the same props reach the\n * client, so both passes translate identically.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function RequestLanguageProvider({ language, children, }","TRANS_TAGS":"/**\n * List of available predefined tags for documentation/AI reference\n */\ndeclare const TRANS_TAGS: readonly [\"accent\", \"primary\", \"muted\", \"success\", \"warning\", \"error\", \"bold\", \"code\"];","Trans":"/**\n * Rich text translation component with predefined styling tags.\n *\n * Use this instead of `t()` when you need inline styling in translations.\n * Plain `t()` returns raw string with tags visible as text.\n *\n * @example\n * ```tsx\n * // Translation: \"<accent>MVP</accent> in 2 weeks\"\n * <Trans ns={NAMESPACE} i18nKey=\"hero.title\" />\n *\n * // With custom components\n * <Trans\n * ns={NAMESPACE}\n * i18nKey=\"hero.title\"\n * components={{ highlight: <mark /> }}\n * />\n * ```\n */\ndeclare function Trans({ components, ...props }","TranslatedText":"/**\n * TranslatedText component for dynamic translations\n * 100% Lighthouse accessibility compliant with proper ARIA support\n *\n * @example\n * // Basic usage\n * <TranslatedText i18nKey=\"welcome.message\" fallback=\"Welcome!\" />\n *\n * @example\n * // With accessibility\n * <TranslatedText\n * i18nKey=\"user.greeting\"\n * values={{ name: 'John' }}\n * fallback=\"Hello {{name}}\"\n * aria-live=\"polite\"\n * />\n *\n * @example\n * // Screen reader only\n * <TranslatedText\n * i18nKey=\"instructions.screen_reader\"\n * fallback=\"Navigate using arrow keys\"\n * srOnly\n * />\n *\n * @example\n * // Interactive elements\n * <TranslatedText\n * i18nKey=\"button.save\"\n * component=\"button\"\n * aria-label=\"Save document\"\n * fallback=\"Save\"\n * />\n */\ndeclare function TranslatedText({ i18nKey, namespace, fallback, values, component: Component, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-live': ariaLive, srOnly, ...props }","getCountries":"/**\n * Get countries from languages that have country codes\n * Reuses existing language/flag mapping, just adds country code and dial code\n */\ndeclare function getCountries(): CountryData[];","getFlagCodes":"declare function getFlagCodes(): string[];","getI18nInstance":"/**\n * Creates the i18next instance with all configuration and initialization\n * Uses the framework's singleton pattern for clean instance management\n *\n * HMR-safe: Store instance globally to survive module reloads\n */\ndeclare const getI18nInstance: () => i18n;","getRequestLanguage":"/**\n * Language of a request, from its `Cookie` and `Accept-Language` headers: language\n * cookie > Accept-Language > fallback. Pure on its inputs, so the server render and\n * the client's hydration pass (given the same header values as props) agree.\n *\n * @param cookieHeader - The request's `Cookie` header\n * @param acceptLanguage - The request's `Accept-Language` header\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRequestLanguage(cookieHeader: string | null | undefined, acceptLanguage: string | null | undefined): string;","getSupportedLanguages":"/**\n * Get supported languages with flags and native names\n *\n * Returns an array of language objects with id, name, flag emoji,\n * and native name. Only includes languages that are enabled in config.\n *\n * @returns Array of language information objects\n *\n * @example\n * ```tsx\n * const languages = getSupportedLanguages();\n * // Returns: [{ id: 'en', name: 'English', flag: '🇺🇸', nativeName: 'English' }, ...]\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getSupportedLanguages(): LanguageInfo[];","hasFlag":"declare function hasFlag(code: string): boolean;","useI18nReady":"/**\n * Hook to check if i18n is ready for use\n * Useful for conditional rendering based on translation readiness\n *\n * @returns boolean indicating if translations are ready\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const isReady = useI18nReady();\n *\n * if (!isReady) {\n * return <Skeleton />;\n * }\n *\n * return <TranslatedContent />;\n * }\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useI18nReady(): boolean;","useLanguageSelector":"/**\n * Language selector utility hook\n *\n * Provides shared logic for all language selector components including\n * language list, current language detection, language switching, and\n * loading state management.\n *\n * Uses the zustand language store when initialized, with transparent\n * fallback to direct i18next access for resilience.\n *\n * @returns Language selector state and actions\n *\n * @example\n * ```tsx\n * const { languages, currentLanguage, changeLanguage, isLoading } = useLanguageSelector();\n *\n * return (\n * <select onChange={(e) => changeLanguage(e.target.value)}>\n * {languages.map(lang => (\n * <option key={lang.code} value={lang.code}>\n * {lang.name}\n * </option>\n * ))}\n * </select>\n * );\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLanguageSelector(): {\n /** Array of supported languages with code, name, flag, and native name */\n languages: LanguageData[];\n /** Current active language code */\n currentLanguage: any;\n /** Function to change the current language */\n changeLanguage: (lng: string) => Promise<void>;\n /** Whether a language change is in progress */\n isLoading: boolean;\n /** Selector mode: 'none' (0-1 langs), 'toggle' (2 langs), 'dropdown' (3+ langs) */\n mode: string;\n /** For toggle mode: the inactive language to switch to */\n otherLanguage: LanguageData | null;\n}","useTranslation":"/**\n * Primary translation hook for DoNotDev framework\n *\n * **Architecture**: Uses singleton pattern for clean instance management.\n * The singleton handles all initialization, this hook just provides the translation function.\n *\n * **SSR Safety**: The server render and the client's hydration pass translate in the\n * request language (RequestLanguageProvider), from the inline `content` both sides load\n * synchronously. Both passes produce the same text, so the first paint is translated\n * and hydration matches. After hydration the live instance takes over; it starts in the\n * same language (language cookie, see getInitialLanguage).\n *\n * **Performance**: Stable references, minimal re-renders, efficient memoization.\n *\n * @param namespace - Translation namespace (defaults to 'dndev' for framework components)\n * @returns Translation function, i18next instance, and ready state\n *\n * @example\n * ```tsx\n * // Framework components - use default 'dndev' namespace\n * const { t } = useTranslation();\n * return <button>{t('actions.save')}</button>; // → 'Save'\n * ```\n *\n * @example\n * ```tsx\n * // Application components - specify namespace\n * const { t } = useTranslation('products');\n * return <h1>{t('catalog.title')}</h1>; // → 'Product Catalog'\n * ```\n *\n * @example\n * ```tsx\n * // Interpolation and fallbacks\n * const { t } = useTranslation('user');\n * return (\n * <span>\n * {t('greeting', { name: 'John', defaultValue: 'Hello {{name}}' })}\n * </span>\n * ); // → 'Hello John'\n * ```\n *\n * @example\n * ```tsx\n * // Array translations\n * const { t } = useTranslation('features');\n * const benefits = t('benefits', { returnObjects: true }) as unknown as string[];\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useTranslation(namespace?: string | string[]): UseTranslationResult;","CountryData":"/** Country metadata for phone inputs and country selectors. */\ntype CountryData = {\n code: string;\n dialCode: string;\n flagCode: string;\n /** Display name for the country in the current UI language */\n name: string;\n}","DoNotDevTransProps":"/**\n * Trans component props - extends i18next TransProps\n */\ntype DoNotDevTransProps = Omit<TransProps<string>, 'components' | 'ns'> & {\n /** Namespace - accepts any string */\n ns?: string;\n /** Additional custom components (merged with predefined ones) */\n components?: Record<string, ReactElement>;\n}","FAQSectionProps":"/** Props for the FAQ accordion section with i18n support. */\ninterface FAQSectionProps {\n /** Translation function from useTranslation hook */\n t: TFunction;\n /** Base key prefix for the FAQ items (e.g., 'faqs.items') */\n keyPrefix: string;\n /** Maximum number of FAQ items to check (exclusive, so 50 means indices 0-49) */\n maxIndex?: number;\n /** CSS class name for the container */\n className?: string;\n /** CSS class name for each accordion item */\n itemClassName?: string;\n /** ARIA label for the FAQ section */\n 'aria-label'?: string;\n}","LanguageFABFormat":"/**\n * Label format for the pill trigger\n * @public\n */\ntype LanguageFABFormat = 'code' | 'name' | 'native';","LanguageFABProps":"/**\n * Props for LanguageFAB component\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageFABProps {\n /** Accessibility label for the pill */\n 'aria-label'?: string;\n /** Additional CSS classes */\n className?: string;\n /** Show flag in the pill trigger @default true */\n showFlag?: boolean;\n /** Show flags in the language list @default true */\n showFlags?: boolean;\n /** Pill label format @default 'code' */\n format?: LanguageFABFormat;\n}","LanguageSelectorProps":"/**\n * Props for LanguageSelector component\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageSelectorProps {\n /**\n * Display - controls language selector presentation in preset layouts\n * - 'compact': Icon-only button (dropdown trigger)\n * - 'full': Flag + language name + \">\" (labeled button)\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /**\n * Button variant for the language selector trigger.\n * @default 'outline'\n */\n variant?: (typeof BUTTON_VARIANT)[keyof typeof BUTTON_VARIANT];\n /** Whether to show flag icons in the selector */\n showFlags?: boolean;\n /** Whether to show language names or just language codes */\n showNames?: boolean;\n /** Additional CSS classes */\n className?: string;\n}","LanguageToggleGroupProps":"/**\n * Props for LanguageToggleGroup component\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageToggleGroupProps {\n /** Array of language codes to display */\n languages?: string[];\n /** Orientation of the toggle group */\n orientation?: ToggleOrientation;\n /** Size variant */\n size?: ToggleSize;\n /** Whether to show flag icons */\n showFlags?: boolean;\n /** Whether to show language names or just codes */\n showNames?: boolean;\n /** Additional CSS classes */\n className?: string;\n /** Whether to show loading state */\n showLoading?: boolean;\n /** Custom variant for the toggle buttons */\n variant?: 'primary' | 'outline' | 'ghost';\n}","ToggleOrientation":"/**\n * Orientation for the toggle group\n * @public\n */\ntype ToggleOrientation = 'horizontal' | 'vertical';","ToggleSize":"/**\n * Size variants for the toggle group\n * @public\n */\ntype ToggleSize = 'sm' | 'md' | 'lg';","TransTag":"/** Allowed tag names for the Trans component's rich text interpolation. */\ntype TransTag = (typeof TRANS_TAGS)[number];","I18n":"class I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {\n ownPostProcessors: new Set()\n };\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (!options.ns.includes('translation')) {\n options.defaultNS = options.ns[0];\n }\n }\n const fallbackLngIsDefault = options.fallbackLng === undefined && this.options.fallbackLng === undefined;\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n if (typeof this.options.overloadTranslationOptionHandler !== 'function') {\n this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (loggerOwner && loggerOwner !== this && loggerOwner.modules.logger !== this.modules.logger) {\n baseLogger.deprecate('init: this init() replaces the logger another i18next instance set with use(), as the logger is shared in v26; from v27 each instance keeps its own logger');\n }\n loggerOwner = this.modules.logger ? this : undefined;\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n this.pendingWarnings?.forEach(msg => this.logger.warn(msg));\n this.pendingWarnings = undefined;\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator\n });\n if (formatter) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this),\n reloadResources: this.reloadResources.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.devIsDefaultFallback = fallbackLngIsDefault;\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n if (s.languageDetector.async && callbackApiOf(s.languageDetector) === undefined) {\n this.logger.deprecate('languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated');\n }\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if ((this.languages || this.isLanguageChangingTo) && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (!toLoad.includes(l)) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) {\n const requested = Object.keys(this.services.backendConnector.state).map(name => name.split('|')[0]);\n lngs = [...new Set([...(this.languages || []), ...requested])].filter(l => l !== 'cimode');\n }\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n const setModule = type => {\n if (this.modules[type] && this.modules[type] !== module) {\n const msg = `use: this ${type} replaces the ${type} passed to an earlier use() call; only one ${type} is used per instance`;\n if (this.isInitializing || this.isInitialized) this.logger.warn(msg);else (this.pendingWarnings = this.pendingWarnings || []).push(msg);\n }\n this.modules[type] = module;\n };\n if (module.type === 'backend') {\n setModule('backend');\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n setModule('languageDetector');\n }\n if (module.type === 'i18nFormat') {\n setModule('i18nFormat');\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n this.services.ownPostProcessors?.add(module.name);\n }\n if (module.type === 'formatter') {\n setModule('formatter');\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n hydrate(resources, lng) {\n if (this.options.isClone) return this;\n if (!this.services.resourceStore) {\n this.logger.warn('hydrate: call init() first, the instance has no resource store yet');\n return this;\n }\n if (resources && !this.initializedStoreOnce) {\n this.services.resourceStore.data = resources;\n Object.values(resources).forEach(lngResources => {\n Object.keys(lngResources).forEach(ns => {\n if (!this.options.ns.includes(ns)) this.options.ns.push(ns);\n });\n });\n this.initializedStoreOnce = true;\n this.isInitialized = true;\n }\n if (lng && !this.initializedLanguageOnce) {\n this.changeLanguage(lng);\n this.initializedLanguageOnce = true;\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].includes(l)) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].includes(lngInLngs)) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && !this.languages.includes(l) && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l && this.logger.debug && !isSafeLanguageCode(l)) {\n const configured = [].concat(this.options.supportedLngs || [], this.services.languageUtils.getFallbackCodes(this.options.fallbackLng, l), this.options.preload || []);\n if (!configured.includes(l) && !Object.prototype.hasOwnProperty.call(this.store.data, l)) {\n this.logger.once(`lng:${l}`, 'deprecate', `changeLanguage: the language code '${l.slice(0, 64)}' comes from lng, changeLanguage() or the language detector and is not configured; from v27 such a code is refused unless it has only letters, digits, '-', '_', '@' and '.' (no '..'), at most 128 characters. Set supportedLngs, or check the code before passing it on`);\n }\n }\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n const callbackApi = callbackApiOf(this.services.languageDetector);\n if (callbackApi === false || callbackApi === undefined && this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix, fixedOpts) {\n const scopeNs = fixedOpts?.scopeNs;\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n const explicitCallNs = o.ns !== undefined && o.ns !== null;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const selectorOpts = {\n ...this.options,\n ...o\n };\n if (Array.isArray(scopeNs) && !explicitCallNs) selectorOpts.ns = scopeNs;\n if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n if (!this.translator) {\n this.logger.warn('t: called before init(); returning an empty string');\n return '';\n }\n return this.translator.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n const {\n languageUtils\n } = this.services;\n const loadLng = !options.lng ? lng : languageUtils.isSupportedCode(lng) && languageUtils.toResolveHierarchy(lng, false)[0];\n if ((!loadLng || loadNotPending(loadLng, ns)) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (!this.options.ns.includes(n)) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'ltr';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.includes(languageUtils.getLanguagePartFromCode(lng)) || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n const instance = new I18n(options, callback);\n instance.createInstance = I18n.createInstance;\n return instance;\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) {\n options = {\n ...options\n };\n delete options.forkResourceStore;\n }\n const mergedOptions = {\n ...this.options,\n preload: false,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n ...clone.services.utils,\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone),\n reloadResources: clone.reloadResources.bind(clone)\n };\n if (forkResourceStore) {\n const copyData = obj => {\n const copied = Array.isArray(obj) ? [...obj] : {\n ...obj\n };\n Object.keys(copied).forEach(k => {\n if (copied[k] && typeof copied[k] === 'object') copied[k] = copyData(copied[k]);\n });\n return copied;\n };\n const clonedData = copyData(this.store.data);\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n if (options.interpolation) {\n const defOpts = get();\n const mergedInterpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation,\n ...options.interpolation\n };\n const mergedForInterpolator = {\n ...mergedOptions,\n interpolation: mergedInterpolation\n };\n clone.services.interpolator = new Interpolator(mergedForInterpolator);\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.newestCloneHasLoadedNamespace = clone.hasLoadedNamespace.bind(clone);\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n }","Utils":"class Utils{static emptyInts(){return[]}static isByteArray(ee){return Array.isArray(ee)||ee instanceof Uint8Array}static isalnum(ee){return Ye.CODES.get(\"0\")<=ee&&ee<=Ye.CODES.get(\"9\")||Ye.CODES.get(\"a\")<=ee&&ee<=Ye.CODES.get(\"z\")||Ye.CODES.get(\"A\")<=ee&&ee<=Ye.CODES.get(\"Z\")}static unhex(ee){return Ye.CODES.get(\"0\")<=ee&&ee<=Ye.CODES.get(\"9\")?ee-Ye.CODES.get(\"0\"):Ye.CODES.get(\"a\")<=ee&&ee<=Ye.CODES.get(\"f\")?ee-Ye.CODES.get(\"a\")+10:Ye.CODES.get(\"A\")<=ee&&ee<=Ye.CODES.get(\"F\")?ee-Ye.CODES.get(\"A\")+10:-1}static escapeRune(ee){let te=\"\";if(nt.isPrint(ee))ye.METACHARACTERS.indexOf(String.fromCodePoint(ee))>=0&&(te+=\"\\\\\"),te+=String.fromCodePoint(ee);else switch(ee){case Ye.CODES.get('\"'):te+='\\\\\"';break;case Ye.CODES.get(\"\\\\\"):te+=\"\\\\\\\\\";break;case Ye.CODES.get(\"\\t\"):te+=\"\\\\t\";break;case Ye.CODES.get(\"\\n\"):te+=\"\\\\n\";break;case Ye.CODES.get(\"\\r\"):te+=\"\\\\r\";break;case Ye.CODES.get(\"\\b\"):te+=\"\\\\b\";break;case Ye.CODES.get(\"\\f\"):te+=\"\\\\f\";break;default:{let ne=ee.toString(16);ee<256?(te+=\"\\\\x\",1===ne.length&&(te+=\"0\"),te+=ne):te+=`\\\\x{${ne}}`;break}}return te}static stringToRunes(ee){const te=String(ee),ne=[];let re=0;for(;re<te.length;){const ee=te.codePointAt(re);ne.push(ee),re+=ee>nt.MAX_BMP?2:1}return ne}static runeToString(ee){return String.fromCodePoint(ee)}static isWordRune(ee){return ee<256&&1===rt[ee]}static emptyOpContext(ee,te){let ne=0;return ee<0&&(ne|=ye.EMPTY_BEGIN_TEXT|ye.EMPTY_BEGIN_LINE),10===ee&&(ne|=ye.EMPTY_BEGIN_LINE),te<0&&(ne|=ye.EMPTY_END_TEXT|ye.EMPTY_END_LINE),10===te&&(ne|=ye.EMPTY_END_LINE),ye.isWordRune(ee)!==ye.isWordRune(te)?ne|=ye.EMPTY_WORD_BOUNDARY:ne|=ye.EMPTY_NO_WORD_BOUNDARY,ne}static quoteMeta(ee){return ee.split(\"\").map((ee=>ye.METACHARACTERS.indexOf(ee)>=0?`\\\\${ee}`:ee)).join(\"\")}static charCount(ee){return ee>nt.MAX_BMP?2:1}static toArray(ee){const te=ee.length,ne=new Array(te);for(let re=0;re<te;re++)ne[re]=ee[re];return ne}static stringToUtf8ByteArray(ee){if(globalThis.TextEncoder)return st||(st=new TextEncoder),ye.toArray(st.encode(ee));{let te=[],ne=0;for(let re=0;re<ee.length;re++){let se=ee.charCodeAt(re);se<128?te[ne++]=se:se<2048?(te[ne++]=se>>6|192,te[ne++]=63&se|128):(64512&se)===nt.MIN_HIGH_SURROGATE&&re+1<ee.length&&(64512&ee.charCodeAt(re+1))===nt.MIN_LOW_SURROGATE?(se=nt.MIN_SUPPLEMENTARY_CODE_POINT+((1023&se)<<10)+(1023&ee.charCodeAt(++re)),te[ne++]=se>>18|240,te[ne++]=se>>12&63|128,te[ne++]=se>>6&63|128,te[ne++]=63&se|128):(te[ne++]=se>>12|224,te[ne++]=se>>6&63|128,te[ne++]=63&se|128)}return te}}static utf8ByteArrayToString(ee){if(globalThis.TextDecoder){it||(it=new TextDecoder(\"utf-8\"));const te=ee instanceof Uint8Array?ee:new Uint8Array(ee);return it.decode(te)}{let te=[],ne=0,re=0;for(;ne<ee.length;){let se=ee[ne++];if(se<128)te[re++]=String.fromCharCode(se);else if(se>191&&se<224){let ie=ee[ne++];te[re++]=String.fromCharCode((31&se)<<6|63&ie)}else if(se>239&&se<365){let ie=((7&se)<<18|(63&ee[ne++])<<12|(63&ee[ne++])<<6|63&ee[ne++])-nt.MIN_SUPPLEMENTARY_CODE_POINT;te[re++]=String.fromCharCode(nt.MIN_HIGH_SURROGATE+(ie>>10)),te[re++]=String.fromCharCode(nt.MIN_LOW_SURROGATE+(1023&ie))}else{let ie=ee[ne++],ae=ee[ne++];te[re++]=String.fromCharCode((15&se)<<12|(63&ie)<<6|63&ae)}}return te.join(\"\")}}}","ConfigOptions":"/**\n * Configuration options for DNDev applications\n *\n * Provides comprehensive configuration for Vite-based applications with\n * built-in support for routing, theming, internationalization, and SEO.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConfigOptions {\n /** App config from app.ts - features and SEO will be extracted automatically (required) */\n appConfig: AppConfig;\n /** Debug mode - disables minification, enables sourcemaps, preserves console logs */\n debug?: boolean;\n /** Verbose logging - shows config/search paths (opt-out, auto-disabled in CI) */\n verbose?: boolean;\n /** Base public path */\n base?: string;\n /** Build mode */\n mode?: 'development' | 'production';\n /** Build configuration */\n build?: BuildConfig;\n /** Module resolution options */\n resolve?: ResolveOptions;\n /** Development server configuration */\n server?: ServerOptions;\n /** Preview server configuration (reuses ServerOptions) */\n preview?: ServerOptions;\n /** Internationalization options */\n i18n?: I18nOptions;\n /** Progressive Web App options */\n pwa?: PWAOptions;\n /** Asset management options */\n assets?: AssetOptions;\n /** Theme detection options */\n themes?: ThemeDetectionOptions;\n /** Route discovery options */\n routes?: RouteDiscoveryOptions;\n /** Chunking configuration options */\n chunking?: ChunkingOptions;\n /** Server shim options */\n serverShim?: ServerShimOptions;\n /** Dependency optimization options */\n optimizeDeps?: OptimizeDepsOptions;\n /** Environment directory (default: Vite auto-resolves relative to vite.config.ts) */\n envDir?: string;\n /** Environment variable prefixes */\n envPrefix?: string | string[];\n /** Additional Vite plugins */\n plugins?: any[];\n /** Prerender options - false to disable, array for explicit routes, object for full config (default: auto-discovers public routes) */\n prerender?:\n | false\n | string[]\n | {\n /** Routes to prerender - 'auto' discovers from manifest, array for explicit (default: 'auto') */\n routes?: string[] | 'auto';\n };\n /** Enable DnDev dashboard plugin (terminal, file API, HMR watcher). Only for the dndev app. */\n dndev?: boolean | Record<string, unknown>;\n}","defineViteConfig":"/**\n * Creates a complete Vite configuration optimized for DNDev applications\n *\n * @param options - Configuration options\n * @returns Complete Vite configuration object\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineViteConfig(\n options?: ConfigOptions | string | boolean\n): any;","definePostCSSConfig":"/**\n * Create PostCSS configuration for Next.js consumer apps.\n * Handles @fontsource CSS alias and workspace-aware package resolution.\n *\n * @example\n * ```js\n * // postcss.config.js\n * import { definePostCSSConfig } from '@donotdev/core/next';\n * export default definePostCSSConfig();\n * ```\n */\ndeclare function definePostCSSConfig(): Promise<{ plugins: Array<unknown> }","getMetadataForPath":"/**\n * Get Next.js Metadata object for a given path.\n * Reads pre-built metadata from manifest generated at build time.\n *\n * @example\n * ```tsx\n * // app/layout.tsx\n * import { getMetadataForPath } from '@donotdev/core/next';\n *\n * export async function generateMetadata() {\n * return getMetadataForPath('/');\n * }\n * ```\n *\n * @param path - Route path (e.g., '/', '/about')\n * @param locale - Current locale (defaults to manifest's defaultLocale)\n * @param options - Additional options\n */\ndeclare function getMetadataForPath(\n path: string,\n locale?: string,\n options?: { siteName?: string }","clearMetadataCache":"/**\n * Clear the metadata manifest cache.\n * Useful for development hot-reload scenarios.\n */\ndeclare function clearMetadataCache(): void;","NextConfigOptions":"/**\n * Next.js configuration options for DNDev applications\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NextConfigOptions {\n /** App config from app.ts - features and SEO will be extracted automatically (required) */\n appConfig: AppConfig;\n /** Debug mode - enables detailed debug logging */\n debug?: boolean;\n /** Verbose logging - shows config/search paths (opt-out, auto-disabled in CI) */\n verbose?: boolean;\n /** Route discovery configuration (uses DRY RouteDiscoveryOptions) */\n routes?: RouteDiscoveryOptions & {\n /** Generate app/** page files (Site template) (default: true) */\n generateAppPages?: boolean;\n /** Routing mode for Next.js */\n routingMode?: 'pages' | 'app';\n /** Generate authentication middleware */\n generateMiddleware?: boolean;\n };\n /** Internationalization configuration (uses DRY I18nOptions) */\n i18n?: I18nOptions;\n /** Theme configuration (uses DRY ThemeDetectionOptions) */\n themes?: ThemeDetectionOptions;\n /** Asset configuration (uses DRY AssetOptions) */\n assets?: AssetOptions;\n /** Generate route manifest */\n generateManifest?: boolean;\n /** PWA configuration */\n pwa?: PWAOptions;\n /** Server shim options */\n serverShim?: ServerShimOptions;\n /** Standard Next.js config options (webpack, rewrites, headers, etc.) - passed through as-is */\n [key: string]: any;\n}","defineNextConfig":"/**\n * Creates a Next.js configuration optimized for DNDev applications\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineNextConfig(options?: NextConfigOptions): any;","EsbuildOptions":"/**\n * Esbuild configuration options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EsbuildOptions {\n entry?: string;\n outDir?: string;\n minify?: boolean;\n sourcemap?: boolean;\n platform?: 'firebase' | 'vercel' | 'framework';\n bundleWorkspaceDeps?: boolean;\n importFramework?: boolean;\n external?: boolean;\n}","createFunctionsEsbuildConfig":"/**\n * Create esbuild configuration for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createFunctionsEsbuildConfig(\n options?: EsbuildOptions\n): BuildOptions;","createRootFunctionsConfig":"/**\n * Create root functions esbuild configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createRootFunctionsConfig(\n options?: EsbuildOptions\n): BuildOptions;","createAppFunctionsConfig":"/**\n * Create app functions esbuild configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createAppFunctionsConfig(\n options?: EsbuildOptions\n): BuildOptions;","AutoDetectOptions":"/** Auto-detection options for YAML generation */\ninterface AutoDetectOptions {\n /** Path to entry file for export detection (e.g., 'src/index.ts') */\n entryFile?: string;\n /** Path to .env file for secret detection (default: '.env') */\n envPath?: string;\n}","detectExportedFunctions":"/**\n * Auto-detect exported function names from entry file\n */\ndeclare function detectExportedFunctions(entryFile: string): string[];","detectSecretsFromEnv":"/**\n * Auto-detect secret keys from .env file (non-config keys)\n */\ndeclare function detectSecretsFromEnv(envPath?: string): string[];","generateFunctionsYaml":"/**\n * Generate functions.yaml content from config\n */\ndeclare function generateFunctionsYaml(\n config: FunctionsConfig,\n options?: AutoDetectOptions\n): string;","generateFunctionsYamlWithInfo":"/**\n * Generate yaml and return metadata\n */\ndeclare function generateFunctionsYamlWithInfo(\n config: FunctionsConfig,\n options?: AutoDetectOptions\n): {\n yaml: string;\n functions: string[];\n staticFunctions: string[];\n crudFunctions: string[];\n autoDetected: string[];\n autoSecrets: string[];\n}","filterEnvSecrets":"/**\n * Filter .env secrets for Firebase deployment\n * Strips secret keys from .env and moves them to .env.local (emulator-only)\n */\ndeclare function filterEnvSecrets(config: FunctionsConfig): {\n stripped: string[];\n kept: number;\n}","BuildFunctionsOptions":"/** Build options for buildFunctions */\ninterface BuildFunctionsOptions {\n /** Entry point file (default: 'src/index.ts') */\n entry?: string;\n /** Output directory (default: 'lib') */\n outDir?: string;\n /** Minify output (default: true in production) */\n minify?: boolean;\n /** Generate source maps (default: true) */\n sourcemap?: boolean;\n /** Print bundle analysis (default: false) */\n analyze?: boolean;\n /** Entry file for auto-detection (default: 'src/index.ts') */\n entryFile?: string;\n /** .env path for secret detection (default: '.env') */\n envPath?: string;\n}","buildFunctions":"/**\n * Build Firebase Functions in one call.\n * Handles: esbuild bundling, functions.yaml generation, .env secret filtering.\n *\n * @example\n * ```js\n * import { buildFunctions } from '@donotdev/core/functions';\n * import { functionsConfig } from './functions.config.js';\n *\n * buildFunctions(functionsConfig);\n * ```\n */\ndeclare function buildFunctions(\n functionsConfig: FunctionsConfig,\n options?: BuildFunctionsOptions\n): Promise<void>;"}
|
|
1
|
+
{"HomePage":"export function HomePage() {\n * return <PageContainer>...</PageContainer>;\n * }","meta":"export const meta: PageMeta = {\n * route: '/blog/:slug' // Creates /blog/:slug\n * }","functionsConfig":"export const functionsConfig: FunctionsConfig = {\n * defaults: {\n * region: ['europe-west1'],\n * platform: 'gcfv2',\n * labels: { app: 'myapp' },\n * },\n * functions: {\n * setCustomClaims: { category: 'auth' },\n * getDashboardMetrics: { category: 'analytics', memory: '512MB' },\n * },\n * crud: {\n * entities: ['car', 'customer', 'inquiry'],\n * },\n * }","legalConfig":"export const legalConfig: LegalConfig = {\n * company: {\n * name: 'ACME Corporation',\n * legalStatus: 'LLC',\n * registrationNumber: '123456789',\n * vatNumber: 'US123456789',\n * },\n * contact: {\n * address: '123 Main St, City, State 12345, Country',\n * email: 'legal@acme.com',\n * supportEmail: 'support@acme.com',\n * privacyEmail: 'privacy@acme.com',\n * dpoEmail: 'dpo@acme.com',\n * },\n * director: {\n * name: 'John Doe',\n * role: 'CEO',\n * },\n * hosting: {\n * provider: 'Firebase Hosting by Google',\n * contact: 'https://firebase.google.com/support',\n * },\n * jurisdiction: {\n * country: 'United States',\n * },\n * website: {\n * url: 'https://acme.com',\n * },\n * }","getFieldRegistry":"export function getFieldRegistry(): FieldRegistry {\n * return getGlobalSingleton('field-registry', () => new FieldRegistry());\n * }","productEntity":"export const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * },\n * // Customize technical field (optional)\n * createdAt: {\n * editable: 'admin',\n * label: 'Created Date'\n * }\n * },\n * // Override access defaults (optional)\n * access: { create: 'guest' } // Public inquiry form\n * }","QueryClientProvider":"/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }","useQueryClient":"/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n}","AGGREGATE_FILTER_OPERATORS":"/** Filter operators for aggregation (subset of CRUD_OPERATORS) */\ndeclare const AGGREGATE_FILTER_OPERATORS: {\n readonly EQ: \"==\";\n readonly NEQ: \"!=\";\n readonly LT: \"<\";\n readonly LTE: \"<=\";\n readonly GT: \">\";\n readonly GTE: \">=\";\n}","AGGREGATE_OPERATIONS":"/** Supported aggregation operations */\ndeclare const AGGREGATE_OPERATIONS: {\n readonly COUNT: \"count\";\n readonly SUM: \"sum\";\n readonly AVG: \"avg\";\n readonly MIN: \"min\";\n readonly MAX: \"max\";\n}","AIChatRequestSchema":"/** Schema for AI chat request (client → server) */\ndeclare const AIChatRequestSchema: v.ObjectSchema<{\n readonly messages: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>, undefined>, v.MinLengthAction<{\n role: \"user\" | \"assistant\" | \"system\";\n content: string;\n id?: string | undefined;\n createdAt?: string | undefined;\n }[], 1, undefined>]>;\n readonly provider: v.OptionalSchema<v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>, undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly stream: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tools: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n }, undefined>, undefined>, undefined>;\n}","AIChatResponseSchema":"/** Schema for AI chat response (server → client, non-streaming) */\ndeclare const AIChatResponseSchema: v.ObjectSchema<{\n readonly message: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly usage: v.OptionalSchema<v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n }, undefined>, undefined>;\n readonly finishReason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly toolCalls: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n}","AIMessageSchema":"/** Schema for a single AI message */\ndeclare const AIMessageSchema: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","AIProviderConfigSchema":"/** Schema for AI provider configuration (consumer's _shared/aiConfig.ts) */\ndeclare const AIProviderConfigSchema: v.ObjectSchema<{\n readonly provider: v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","AIToolCallSchema":"/** Schema for a tool call result */\ndeclare const AIToolCallSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n}","AIToolDefinitionSchema":"/** Schema for an AI tool definition */\ndeclare const AIToolDefinitionSchema: v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n}","AIUsageSchema":"/** Schema for AI token usage */\ndeclare const AIUsageSchema: v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n}","AI_ERROR_CODES":"/** AI error codes */\ndeclare const AI_ERROR_CODES: {\n readonly UNKNOWN: \"unknown\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly INVALID_API_KEY: \"invalid_api_key\";\n readonly RATE_LIMIT_EXCEEDED: \"rate_limit_exceeded\";\n readonly PROVIDER_ERROR: \"provider_error\";\n readonly TOKEN_LIMIT_EXCEEDED: \"token_limit_exceeded\";\n readonly STREAM_INTERRUPTED: \"stream_interrupted\";\n}","AI_MODELS":"/** Default models per provider */\ndeclare const AI_MODELS: {\n readonly anthropic: {\n readonly default: \"claude-sonnet-4-6\";\n readonly models: readonly [\"claude-sonnet-4-6\", \"claude-sonnet-4-20250514\", \"claude-haiku-4-5-20251001\", \"claude-opus-4-6\", \"claude-opus-4-20250514\"];\n };\n readonly openai: {\n readonly default: \"gpt-4o\";\n readonly models: readonly [\"gpt-4o\", \"gpt-4o-mini\", \"gpt-4.1\", \"gpt-4.1-mini\", \"o3-mini\"];\n };\n readonly google: {\n readonly default: \"gemini-2.0-flash\";\n readonly models: readonly [\"gemini-2.0-flash\", \"gemini-2.5-pro\", \"gemini-2.5-flash\"];\n };\n}","AI_PROVIDERS":"/** Supported AI providers */\ndeclare const AI_PROVIDERS: {\n readonly ANTHROPIC: \"anthropic\";\n readonly OPENAI: \"openai\";\n readonly GOOGLE: \"google\";\n}","AI_ROLES":"/** Message roles */\ndeclare const AI_ROLES: {\n readonly USER: \"user\";\n readonly ASSISTANT: \"assistant\";\n readonly SYSTEM: \"system\";\n}","AI_TIERS":"/** AI model tiers - SSOT for tier-based model resolution */\ndeclare const AI_TIERS: {\n readonly FAST: {\n readonly id: \"fast\";\n readonly defaultModel: \"claude-haiku-4-5-20251001\";\n };\n readonly STANDARD: {\n readonly id: \"standard\";\n readonly defaultModel: \"claude-sonnet-4-6\";\n };\n readonly PREMIUM: {\n readonly id: \"premium\";\n readonly defaultModel: \"claude-opus-4-6\";\n };\n}","AI_TOKEN_PRICING":"/**\n * Token pricing per model (USD per 1M tokens).\n * SSOT - imported by both client (cost display) and server (cost recording).\n */\ndeclare const AI_TOKEN_PRICING: Record<string, {\n promptPer1M: number;\n completionPer1M: number;\n currency: 'usd';\n}","AUTH_EVENTS":"/**\n * Authentication event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_EVENTS: {\n readonly AUTH_STATE_CHANGED: \"auth.state.changed\";\n readonly USER_SIGNED_IN: \"auth.user.signed_in\";\n readonly USER_SIGNED_OUT: \"auth.user.signed_out\";\n readonly USER_UPDATED: \"auth.user.updated\";\n readonly TOKEN_REFRESHED: \"auth.token.refreshed\";\n readonly SUBSCRIPTION_UPDATED: \"auth.subscription.updated\";\n readonly SUBSCRIPTION_CHANGED: \"auth.subscription.changed\";\n readonly SUBSCRIPTION_CANCELLED: \"auth.subscription.cancelled\";\n readonly SUBSCRIPTION_EXPIRED: \"auth.subscription.expired\";\n readonly PERMISSIONS_UPDATED: \"auth.permissions.updated\";\n readonly ACCOUNT_LINKED: \"auth.account.linked\";\n readonly ACCOUNT_UNLINKED: \"auth.account.unlinked\";\n readonly ACCOUNT_LINKING_REQUIRED: \"auth.account.linking_required\";\n readonly AUTH_SUCCESS: \"auth.success\";\n readonly EMAIL_VERIFICATION_SENT: \"auth.email.verification_sent\";\n readonly PASSWORD_RESET_SENT: \"auth.password.reset_sent\";\n readonly AUTH_ERROR: \"auth.error\";\n}","AUTH_PARTNERS":"/**\n * Authentication partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_PARTNERS: {\n readonly apple: {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n };\n readonly discord: {\n readonly name: \"Discord\";\n readonly color: \"#5865F2\";\n readonly icon: \"discord\";\n readonly type: \"both\";\n readonly scopes: readonly [\"identify\", \"email\"];\n readonly firebaseProviderId: \"discord.com\";\n readonly customParameters: {\n readonly prompt: \"consent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.discord\";\n };\n };\n readonly emailLink: {\n readonly name: \"Email Link\";\n readonly color: \"#10B981\";\n readonly icon: \"emailLink\";\n readonly type: \"auth\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"emailLink\";\n readonly customParameters: {};\n readonly button: {\n readonly backgroundColor: \"#10B981\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#10B981\";\n readonly hoverBackgroundColor: \"#059669\";\n readonly focusOutlineColor: \"#059669\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.emailLink\";\n };\n };\n readonly facebook: {\n readonly name: \"Facebook\";\n readonly color: \"#1877F2\";\n readonly icon: \"facebook\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"public_profile\"];\n readonly firebaseProviderId: \"facebook.com\";\n readonly customParameters: {\n readonly auth_type: \"reauthenticate\";\n };\n readonly button: {\n readonly backgroundColor: \"#1877F2\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#1877F2\";\n readonly hoverBackgroundColor: \"#166FE5\";\n readonly focusOutlineColor: \"#166FE5\";\n readonly fontWeight: \"600\";\n readonly textKey: \"buttons.facebook\";\n };\n };\n readonly github: {\n readonly name: \"GitHub\";\n readonly color: \"#24292E\";\n readonly icon: \"github\";\n readonly type: \"both\";\n readonly scopes: readonly [\"read:user\", \"user:email\"];\n readonly firebaseProviderId: \"github.com\";\n readonly customParameters: {\n readonly allow_signup: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.github\";\n };\n };\n readonly google: {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"profile\"];\n readonly firebaseProviderId: \"google.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.google\";\n };\n };\n readonly linkedin: {\n readonly name: \"LinkedIn\";\n readonly color: \"#0077B5\";\n readonly icon: \"linkedin\";\n readonly type: \"both\";\n readonly scopes: readonly [\"r_liteprofile\", \"r_emailaddress\"];\n readonly firebaseProviderId: \"linkedin.com\";\n readonly customParameters: {\n readonly prompt: \"consent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.linkedin\";\n };\n };\n readonly microsoft: {\n readonly name: \"Microsoft\";\n readonly color: \"#00A4EF\";\n readonly icon: \"microsoft\";\n readonly type: \"both\";\n readonly scopes: readonly [\"openid\", \"email\", \"profile\"];\n readonly firebaseProviderId: \"microsoft.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.microsoft\";\n };\n };\n readonly password: {\n readonly name: \"Email & Password\";\n readonly color: \"#6B7280\";\n readonly icon: \"password\";\n readonly type: \"auth\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"password\";\n readonly customParameters: {};\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#374151\";\n readonly borderColor: \"#D1D5DB\";\n readonly hoverBackgroundColor: \"#F9FAFB\";\n readonly focusOutlineColor: \"#3B82F6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.password\";\n };\n };\n readonly reddit: {\n readonly name: \"Reddit\";\n readonly color: \"#FF4500\";\n readonly icon: \"reddit\";\n readonly type: \"both\";\n readonly scopes: readonly [\"identity\"];\n readonly firebaseProviderId: \"reddit.com\";\n readonly customParameters: {\n readonly duration: \"permanent\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.reddit\";\n };\n };\n readonly spotify: {\n readonly name: \"Spotify\";\n readonly color: \"#1DB954\";\n readonly icon: \"spotify\";\n readonly type: \"both\";\n readonly scopes: readonly [\"user-read-email\", \"user-read-private\"];\n readonly firebaseProviderId: \"spotify.com\";\n readonly customParameters: {\n readonly show_dialog: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.spotify\";\n };\n };\n readonly twitch: {\n readonly name: \"Twitch\";\n readonly color: \"#9146FF\";\n readonly icon: \"twitch\";\n readonly type: \"both\";\n readonly scopes: readonly [\"user:read:email\"];\n readonly firebaseProviderId: \"twitch.tv\";\n readonly customParameters: {\n readonly force_verify: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.twitch\";\n };\n };\n readonly twitter: {\n readonly name: \"X\";\n readonly color: \"#000000\";\n readonly icon: \"twitter\";\n readonly type: \"both\";\n readonly scopes: readonly [];\n readonly firebaseProviderId: \"twitter.com\";\n readonly customParameters: {\n readonly force_login: \"true\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.twitter\";\n };\n };\n readonly yahoo: {\n readonly name: \"Yahoo\";\n readonly color: \"#5F01D1\";\n readonly icon: \"yahoo\";\n readonly type: \"both\";\n readonly scopes: readonly [\"openid\", \"email\", \"profile\"];\n readonly firebaseProviderId: \"yahoo.com\";\n readonly customParameters: {\n readonly prompt: \"select_account\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.yahoo\";\n };\n };\n}","AUTH_PARTNER_STATE":"/**\n * Partner state constants - Single source of truth for partner states\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AUTH_PARTNER_STATE: {\n readonly IDLE: \"idle\";\n readonly LOADING: \"loading\";\n readonly ERROR: \"error\";\n readonly AUTHENTICATED: \"authenticated\";\n}","AuthUserSchema":"/**\n * Schema for authenticated user data\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AuthUserSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","BILLING_EVENTS":"/**\n * Billing event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BILLING_EVENTS: {\n readonly BILLING_INITIALIZED: \"billing.initialized\";\n readonly BILLING_ERROR: \"billing.error\";\n readonly CHECKOUT_SESSION_CREATED: \"billing.checkout_session.created\";\n readonly CHECKOUT_SESSION_FAILED: \"billing.checkout_session.failed\";\n readonly SUBSCRIPTION_CREATED: \"billing.subscription.created\";\n readonly SUBSCRIPTION_UPDATED: \"billing.subscription.updated\";\n readonly SUBSCRIPTION_CANCELLED: \"billing.subscription.cancelled\";\n readonly SUBSCRIPTION_RENEWED: \"billing.subscription.renewed\";\n readonly SUBSCRIPTION_EXPIRED: \"billing.subscription.expired\";\n readonly SUBSCRIPTION_TRIAL_ENDED: \"billing.subscription.trial_ended\";\n readonly PAYMENT_SUCCEEDED: \"billing.payment.succeeded\";\n readonly PAYMENT_FAILED: \"billing.payment.failed\";\n readonly PAYMENT_REFUNDED: \"billing.payment.refunded\";\n readonly PAYMENT_METHOD_ADDED: \"billing.payment_method.added\";\n readonly PAYMENT_METHOD_UPDATED: \"billing.payment_method.updated\";\n readonly PAYMENT_METHOD_REMOVED: \"billing.payment_method.removed\";\n readonly PAYMENT_METHOD_DEFAULT_CHANGED: \"billing.payment_method.default_changed\";\n readonly INVOICE_CREATED: \"billing.invoice.created\";\n readonly INVOICE_UPDATED: \"billing.invoice.updated\";\n readonly INVOICE_PAID: \"billing.invoice.paid\";\n readonly INVOICE_FAILED: \"billing.invoice.failed\";\n readonly WEBHOOK_RECEIVED: \"billing.webhook.received\";\n readonly WEBHOOK_PROCESSED: \"billing.webhook.processed\";\n readonly WEBHOOK_ERROR: \"billing.webhook.error\";\n}","BREAKPOINT_RANGES":"/**\n * Breakpoint pixel ranges\n *\n * Defines the pixel ranges for each breakpoint to help with\n * responsive design calculations and media queries.\n * These ranges match the CSS media queries and store logic.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BREAKPOINT_RANGES: Record<Breakpoint, {\n min: number;\n max: number;\n}","BREAKPOINT_THRESHOLDS":"/**\n * Breakpoint threshold values for calculation\n *\n * These are the actual breakpoint boundaries used for responsive logic.\n * Each value represents the minimum width for that breakpoint.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const BREAKPOINT_THRESHOLDS: {\n readonly mobile: 0;\n readonly tablet: 768;\n readonly laptop: 1024;\n readonly desktop: 1440;\n}","BulkAcrossCycleError":"/**\n * Thrown by {@link bulkAcross} before any side effect when `dependsOn`\n * relationships form a cycle. The `cycle` array lists the collection names\n * that form the circular dependency chain.\n *\n * @example\n * try {\n * await crud.bulkAcross([\n * { collection: 'a', dependsOn: ['b'], ... },\n * { collection: 'b', dependsOn: ['a'], ... },\n * ]);\n * } catch (err) {\n * if (err instanceof BulkAcrossCycleError) {\n * console.error(err.cycle); // ['a', 'b']\n * }\n * }\n *\n * @version 0.1.0\n * @since 0.3.0\n */\ndeclare class BulkAcrossCycleError extends Error {\n /** Collection names that form the cycle. */\n readonly cycle: string[];\n constructor(cycle: string[]);\n}","BulkCollisionError":"/**\n * Thrown when a {@link BulkOperations} payload contains the same id in two\n * mutually-exclusive buckets. The service rejects these up-front, before any\n * write is attempted, so partial state is impossible.\n *\n * @example\n * try {\n * await crud.bulk({\n * updates: [{ id: 'a', patch: {} }],\n * deletes: ['a'],\n * });\n * } catch (err) {\n * if (err instanceof BulkCollisionError) {\n * // err.collidingIds === ['a']\n * // err.where === 'updates-deletes'\n * }\n * }\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ndeclare class BulkCollisionError extends Error {\n /** IDs that appear in both buckets. Preserves the order they were detected. */\n readonly collidingIds: string[];\n /** Which two buckets collided. */\n readonly where: 'updates-deletes' | 'inserts-updates';\n /**\n * @param collidingIds - IDs present in both buckets.\n * @param where - The pair of buckets that produced the collision.\n */\n constructor(collidingIds: string[], where: 'updates-deletes' | 'inserts-updates');\n}","BulkNotImplementedError":"/**\n * Thrown by an adapter whose `bulk()` method has not yet been implemented.\n * Lets the interface stay required across all providers while individual\n * adapters can land their implementation incrementally.\n *\n * @example\n * // Inside an adapter stub:\n * async bulk() {\n * throw new BulkNotImplementedError('restcrud');\n * }\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ndeclare class BulkNotImplementedError extends Error {\n /** Adapter identifier (e.g. `'firebase-firestore'`, `'supabase'`). */\n readonly adapterName: string;\n /**\n * @param adapterName - Name of the adapter that has not implemented `bulk()`.\n */\n constructor(adapterName: string);\n}","COMMON_TIER_CONFIGS":"/**\n * Common tier configurations that apps can use as a starting point\n * Apps can extend this or create their own completely custom configs\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const COMMON_TIER_CONFIGS: {\n free: {\n features: string[];\n level: number;\n };\n pro: {\n features: string[];\n level: number;\n };\n ai: {\n features: string[];\n level: number;\n };\n}","CONFIDENCE_LEVELS":"/**\n * Platform detection confidence thresholds\n * @constant\n */\ndeclare const CONFIDENCE_LEVELS: {\n readonly HIGH: 0.95;\n readonly MEDIUM: 0.8;\n readonly LOW: 0.7;\n readonly MINIMUM: 0.3;\n}","CONSENT_CATEGORY":"/**\n * Consent category constants - DRY single source of truth\n * Use these instead of hardcoded strings throughout the codebase\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CONSENT_CATEGORY: {\n readonly NECESSARY: \"necessary\";\n readonly FUNCTIONAL: \"functional\";\n readonly ANALYTICS: \"analytics\";\n readonly MARKETING: \"marketing\";\n}","CONTEXTS":"/**\n * Supported execution contexts\n * @constant\n */\ndeclare const CONTEXTS: {\n readonly CLIENT: \"client\";\n readonly SERVER: \"server\";\n readonly BUILD: \"build\";\n}","CRUD_OPERATORS":"/**\n * Supported filter operators for query where clauses.\n * Use these in framework code for consistency. Consumers can use string literals\n * (e.g. operator: 'in') — CrudOperator accepts them; no need to import CRUD_OPERATORS.\n */\ndeclare const CRUD_OPERATORS: {\n readonly EQ: \"==\";\n readonly NEQ: \"!=\";\n readonly LT: \"<\";\n readonly LTE: \"<=\";\n readonly GT: \">\";\n readonly GTE: \">=\";\n readonly IN: \"in\";\n readonly NOT_IN: \"not-in\";\n readonly ARRAY_CONTAINS: \"array-contains\";\n readonly ARRAY_CONTAINS_ANY: \"array-contains-any\";\n}","CheckoutLineItemInputSchema":"/**\n * One requested line: what the client wants, never what it costs.\n * Names and prices are resolved on the server.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const CheckoutLineItemInputSchema: v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n}","CheckoutSessionMetadataSchema":"/**\n * Schema for Stripe checkout session metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CheckoutSessionMetadataSchema: v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","CreateCheckoutSessionRequestSchema":"/**\n * Schema for creating a checkout session request.\n * The client sends what it wants (config key + line items); the server derives\n * prices, mode and user from the back config and the auth context.\n *\n * 0.1.x requests keep working unchanged: the key may come from\n * `metadata.billingConfigKey`, `lineItems` defaults to the single product, and\n * the 0.1.x fields (`priceId`, `currency`, `mode`)\n * are kept and honoured for StripePayment/StripeSubscription items exactly as in\n * 0.1.x (priceId checked against the back config). StripeOrder ignores them. `userId` is never trusted by the\n * framework providers: they pass the authenticated user.\n * The output is always normalized (`billingConfigKey` + `lineItems` set).\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CreateCheckoutSessionRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: currency code, defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n}","CreateCheckoutSessionResponseSchema":"/**\n * Schema for creating a checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CreateCheckoutSessionResponseSchema: v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","CustomClaimsSchema":"/**\n * Schema for Firebase Auth custom claims\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CustomClaimsSchema: v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n}","DEFAULT_AI_CONFIG":"/** Default AI configuration */\ndeclare const DEFAULT_AI_CONFIG: {\n readonly maxTokens: 4096;\n readonly temperature: 0.7;\n readonly stream: true;\n}","DEFAULT_AI_MARKUP":"/** Default markup multiplier (provider cost x 4 = billed cost) */\ndeclare const DEFAULT_AI_MARKUP = 4;","DEFAULT_ENTITY_ACCESS":"/**\n * Default access levels for entity operations\n * Opinionated framework defaults:\n * - Read is public by default (Level 0)\n * - Write operations require Admin by default (Level 2)\n */\ndeclare const DEFAULT_ENTITY_ACCESS: {\n readonly create: \"admin\";\n readonly read: \"guest\";\n readonly update: \"admin\";\n readonly delete: \"admin\";\n}","DEFAULT_LAYOUT_PRESET":"/**\n * Default layout preset - single source of truth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_LAYOUT_PRESET: \"landing\";","DEFAULT_SUBSCRIPTION":"/**\n * Default subscription for new users (free tier)\n * Framework consumers can override these defaults\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_SUBSCRIPTION: SubscriptionClaims;","DENSITY":"/**\n * Density constants - DRY single source of truth\n * Used for spacing and typography presets via data-density attribute\n * CSS uses these string values directly, but TypeScript code should use constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DENSITY: {\n readonly COMPACT: \"compact\";\n readonly STANDARD: \"standard\";\n readonly EXPRESSIVE: \"expressive\";\n}","DoNotDevError":"/**\n * Standardized error class for the DoNotDev platform\n * Single source of truth with optional fields for all use cases\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class DoNotDevError extends Error {\n /** The error code categorizing this error */\n readonly code: ErrorCode;\n /** Optional additional details or context about the error */\n readonly details?: Record<string, any>;\n /** The source system where the error originated */\n readonly source?: ErrorSource;\n /** Original error if this is wrapping another error */\n readonly originalError?: Error;\n /** Additional context for the error */\n readonly context?: Record<string, any>;\n /** Whether this error should be displayed to the user */\n readonly displayable?: boolean;\n /** Flag to track if a user message has been provided */\n readonly userMessageProvided?: boolean;\n constructor(message: string, code?: ErrorCode, options?: {\n details?: Record<string, any>;\n source?: ErrorSource;\n originalError?: Error;\n context?: Record<string, any>;\n displayable?: boolean;\n userMessageProvided?: boolean;\n });\n toString(): string;\n toJSON(): object;\n}","EDITABLE":"/**\n * Editable levels for entity fields (runtime constants)\n * Controls who can MODIFY this field\n * - true: Anyone who can see the field\n * - false: Nobody (read-only)\n * - 'user': Authenticated users+ (role hierarchy)\n * - 'admin': Admins+ (role hierarchy)\n * - 'super': Super admins only\n * - 'create-only': Editable on create, read-only after\n * - 'generated': DB-generated (excluded from forms and write schemas)\n * - 'computed': UI-computed (excluded from forms, included in writes)\n */\ndeclare const EDITABLE: {\n /** Anyone who can see the field (follows visibility) */\n readonly TRUE: true;\n /** Read-only display in forms */\n readonly FALSE: false;\n /** Authenticated users+ */\n readonly USER: \"user\";\n /** Admin+ */\n readonly ADMIN: \"admin\";\n /** Super only */\n readonly SUPER: \"super\";\n /** Editable on create, read-only after */\n readonly CREATE_ONLY: \"create-only\";\n /** DB-generated column (PostgreSQL GENERATED ALWAYS) — excluded from forms and write schemas */\n readonly GENERATED: \"generated\";\n /** UI-computed field (derived from other fields) — excluded from forms, included in writes */\n readonly COMPUTED: \"computed\";\n}","EMAIL_ERROR_CODES":"/** Email error codes */\ndeclare const EMAIL_ERROR_CODES: {\n readonly UNKNOWN: \"unknown\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly INVALID_REQUEST: \"invalid_request\";\n readonly PROVIDER_ERROR: \"provider_error\";\n readonly TEMPLATE_NOT_FOUND: \"template_not_found\";\n readonly RATE_LIMIT_EXCEEDED: \"rate_limit_exceeded\";\n readonly MISSING_API_KEY: \"missing_api_key\";\n}","EMAIL_PROVIDERS":"/** Supported email providers */\ndeclare const EMAIL_PROVIDERS: {\n readonly RESEND: \"resend\";\n}","EMAIL_VERIFICATION_STATUS":"/**\n * Email verification status constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const EMAIL_VERIFICATION_STATUS: {\n readonly VERIFIED: \"verified\";\n readonly PENDING: \"pending\";\n readonly ERROR: \"error\";\n}","ENTITY_HOOK_ERRORS":"/**\n * Error types used in entity hooks\n */\ndeclare const ENTITY_HOOK_ERRORS: {\n readonly INTERNAL_ERROR: \"INTERNAL_ERROR\";\n readonly VALIDATION_ERROR: \"VALIDATION_ERROR\";\n readonly PERMISSION_DENIED: \"PERMISSION_DENIED\";\n readonly NOT_FOUND: \"NOT_FOUND\";\n readonly ALREADY_EXISTS: \"ALREADY_EXISTS\";\n readonly NETWORK_ERROR: \"NETWORK_ERROR\";\n}","ENVIRONMENTS":"/**\n * Supported environment modes\n * @constant\n */\ndeclare const ENVIRONMENTS: {\n readonly DEVELOPMENT: \"development\";\n readonly PRODUCTION: \"production\";\n readonly TEST: \"test\";\n}","ERROR_CODES":"/**\n * Standard error codes used within the DoNotDev platform.\n * Mapped to HTTP status codes or used for specific error handling logic.\n */\ndeclare const ERROR_CODES: {\n readonly ALREADY_EXISTS: \"already-exists\";\n readonly CANCELLED: \"cancelled\";\n readonly DEADLINE_EXCEEDED: \"deadline-exceeded\";\n readonly DELETE_ACCOUNT_REQUIRES_SERVER: \"DELETE_ACCOUNT_REQUIRES_SERVER\";\n readonly INTERNAL: \"internal\";\n readonly INVALID_ARGUMENT: \"invalid-argument\";\n readonly NOT_FOUND: \"not-found\";\n readonly PERMISSION_DENIED: \"permission-denied\";\n readonly RATE_LIMIT_EXCEEDED: \"rate-limit-exceeded\";\n readonly TIMEOUT: \"timeout\";\n readonly UNAUTHENTICATED: \"unauthenticated\";\n readonly UNAVAILABLE: \"unavailable\";\n readonly UNIMPLEMENTED: \"unimplemented\";\n readonly UNKNOWN: \"unknown\";\n readonly VALIDATION_FAILED: \"validation-failed\";\n}","ERROR_SEVERITY":"/**\n * Severity levels for error notifications and logging\n */\ndeclare const ERROR_SEVERITY: {\n readonly ERROR: \"error\";\n readonly WARNING: \"warning\";\n readonly INFO: \"info\";\n readonly SUCCESS: \"success\";\n}","ERROR_SOURCE":"/**\n * Error source types for tracking where errors originate\n */\ndeclare const ERROR_SOURCE: {\n readonly AUTH: \"auth\";\n readonly OAUTH: \"oauth\";\n readonly FIREBASE: \"firebase\";\n readonly API: \"api\";\n readonly VALIDATION: \"validation\";\n readonly ENTITY: \"entity\";\n readonly UI: \"ui\";\n readonly UNKNOWN: \"unknown\";\n}","EntityHookError":"/**\n * Error class for standardized entity hook errors\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class EntityHookError extends Error {\n type: EntityHookErrors;\n originalError?: unknown;\n constructor(type: EntityHookErrors, message: string, originalError?: unknown);\n}","FEATURES":"/**\n * Standard feature names\n * Apps can override these by providing their own feature constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FEATURES: {\n readonly BASIC_ACCESS: \"basic_access\";\n readonly ADVANCED_FEATURES: \"advanced_features\";\n readonly API_ACCESS: \"api_access\";\n readonly PRIORITY_SUPPORT: \"priority_support\";\n}","FEATURE_CONSENT_MATRIX":"/**\n * Feature/Consent Matrix\n *\n * Single source of truth for:\n * - Which features exist in the framework\n * - What consent each feature requires\n * - Type-safe feature names across codebase\n *\n * Uses CONSENT_CATEGORY constants for DRY compliance\n *\n * @example\n * ```typescript\n * // SaaS app (Auth + Billing)\n * features: ['auth', 'billing'] // No consent required (both necessary)\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FEATURE_CONSENT_MATRIX: {\n /** Authentication - Firebase Auth, user sessions */\n readonly auth: {\n readonly requiresConsent: null;\n };\n /** OAuth - Third-party authentication (Google, GitHub, etc.) */\n readonly oauth: {\n readonly requiresConsent: null;\n };\n /** Billing - Stripe subscriptions, payments */\n readonly billing: {\n readonly requiresConsent: null;\n };\n /** Analytics - Usage tracking, performance monitoring */\n readonly analytics: {\n readonly requiresConsent: \"analytics\";\n };\n /** Marketing - Advertising, retargeting */\n readonly marketing: {\n readonly requiresConsent: \"marketing\";\n };\n}","FEATURE_STATUS":"/**\n * Unified feature status for all feature packages\n * Replaces combinatorial boolean flags (initialized, authStateChecked, loading) with single-source-of-truth enum.\n *\n * **Status values:**\n * - `initializing`: Feature is loading/initializing (show skeleton/loader, DON'T redirect yet)\n * - `ready`: Feature fully operational (check user state, redirect if needed)\n * - `degraded`: Feature unavailable but app continues (protected routes redirect with error, public routes allow access)\n * - `error`: Feature encountered recoverable error (protected routes redirect with error)\n *\n * **Usage in guards:**\n * - Protected routes with `degraded` status redirect to auth route with `?error=auth_unavailable`\n * - Protected routes with `error` status redirect to auth route with `?error=auth_error`\n * - `initializing` shows loader, doesn't redirect\n * - `ready` performs normal auth checks\n *\n * @example\n * ```typescript\n * switch (status) {\n * case FEATURE_STATUS.INITIALIZING: return <Skeleton />;\n * case FEATURE_STATUS.DEGRADED:\n * // Protected route → redirect with error\n * // Public route → allow access\n * return authRequired ? <Redirect to=\"/auth?error=auth_unavailable\" /> : children;\n * case FEATURE_STATUS.READY: return user ? children : <Redirect />;\n * case FEATURE_STATUS.ERROR: return <ErrorBoundary />;\n * }\n * ```\n */\ndeclare const FEATURE_STATUS: {\n readonly INITIALIZING: \"initializing\";\n readonly READY: \"ready\";\n readonly DEGRADED: \"degraded\";\n readonly ERROR: \"error\";\n}","FIELD_TYPES":"declare const FIELD_TYPES: readonly [\"address\", \"array\", \"avatar\", \"badge\", \"boolean\", \"checkbox\", \"color\", \"combobox\", \"date\", \"datetime-local\", \"document\", \"documents\", \"duration\", \"email\", \"field-array\", \"file\", \"files\", \"gdprConsent\", \"geopoint\", \"hidden\", \"iban\", \"image\", \"images\", \"map\", \"month\", \"multiselect\", \"number\", \"currency\", \"price\", \"password\", \"radio\", \"reference\", \"range\", \"rating\", \"reset\", \"richtext\", \"select\", \"submit\", \"switch\", \"tel\", \"text\", \"textarea\", \"time\", \"timestamp\", \"url\", \"week\", \"year\"];","FIREBASE_ERROR_MAP":"/**\n * Maps Firebase error codes to entity hook error types\n * Used for consistent error handling across the platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FIREBASE_ERROR_MAP: Record<string, {\n type: EntityHookErrors;\n message: string;\n}","FOOTER_MODE":"/**\n * Footer mode constants - DRY single source of truth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FOOTER_MODE: {\n readonly FIXED: \"fixed\";\n readonly SCROLL: \"scroll\";\n}","GITHUB_PERMISSION_LEVELS":"/**\n * GitHub repository permission levels (runtime constants)\n * Keep in sync with GitHub API scopes/permissions.\n */\ndeclare const GITHUB_PERMISSION_LEVELS: readonly [\"pull\", \"push\", \"admin\", \"maintain\", \"triage\"];","LAYOUT_PRESET":"/**\n * Layout preset constants - DRY single source of truth\n * Use these instead of hardcoded strings throughout the codebase\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LAYOUT_PRESET: {\n readonly ADMIN: \"admin\";\n readonly BLOG: \"blog\";\n readonly DOCS: \"docs\";\n readonly GAME: \"game\";\n readonly LANDING: \"landing\";\n readonly MOOLTI: \"moolti\";\n readonly PLAIN: \"plain\";\n}","LIST_SCHEMA_TYPE":"/** Schema type for list queries (list vs listCard) */\ndeclare const LIST_SCHEMA_TYPE: {\n readonly LIST: \"list\";\n readonly LIST_CARD: \"listCard\";\n}","MAX_CHECKOUT_LINE_ITEMS":"/**\n * Maximum line items per checkout request (framework limit).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const MAX_CHECKOUT_LINE_ITEMS = 100;","MAX_SHIPPING_RATE_IDS":"/**\n * Maximum shipping rates per Checkout Session (Stripe `shipping_options` limit).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const MAX_SHIPPING_RATE_IDS = 5;","OAUTH_EVENTS":"/**\n * OAuth event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const OAUTH_EVENTS: {\n readonly OAUTH_STARTED: \"oauth.started\";\n readonly OAUTH_SUCCESS: \"oauth.success\";\n readonly OAUTH_ERROR: \"oauth.error\";\n readonly OAUTH_CANCELLED: \"oauth.cancelled\";\n readonly OAUTH_TOKEN_EXCHANGED: \"oauth.token.exchanged\";\n readonly OAUTH_TOKEN_REFRESHED: \"oauth.token.refreshed\";\n readonly OAUTH_PARTNER_LINKED: \"oauth.partner.linked\";\n readonly OAUTH_PARTNER_UNLINKED: \"oauth.partner.unlinked\";\n}","OAUTH_PARTNERS":"/**\n * OAuth partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const OAUTH_PARTNERS: {\n readonly google: {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly github: {\n readonly name: \"GitHub\";\n readonly color: \"#24292E\";\n readonly icon: \"github\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"read:user\", \"user:email\"];\n readonly 'api-access': readonly [\"repo\", \"user\", \"read:org\", \"gist\", \"notifications\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://github.com/login/oauth/authorize\";\n readonly tokenUrl: \"https://github.com/login/oauth/access_token\";\n readonly profileUrl: \"https://api.github.com/user\";\n readonly revokeUrl: \"https://api.github.com/applications/CLIENT_ID/token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly discord: {\n readonly name: \"Discord\";\n readonly color: \"#5865F2\";\n readonly icon: \"discord\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"identify\", \"email\"];\n readonly 'api-access': readonly [\"guilds\", \"guilds.members.read\", \"bot\", \"messages.read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://discord.com/api/oauth2/authorize\";\n readonly tokenUrl: \"https://discord.com/api/oauth2/token\";\n readonly profileUrl: \"https://discord.com/api/users/@me\";\n readonly revokeUrl: \"https://discord.com/api/oauth2/token/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly spotify: {\n readonly name: \"Spotify\";\n readonly color: \"#1DB954\";\n readonly icon: \"spotify\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"user-read-email\", \"user-read-private\"];\n readonly 'api-access': readonly [\"user-read-playback-state\", \"user-modify-playback-state\", \"user-read-currently-playing\", \"playlist-read-private\", \"playlist-modify-public\", \"user-library-read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.spotify.com/authorize\";\n readonly tokenUrl: \"https://accounts.spotify.com/api/token\";\n readonly profileUrl: \"https://api.spotify.com/v1/me\";\n readonly revokeUrl: \"https://accounts.spotify.com/api/token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly twitch: {\n readonly name: \"Twitch\";\n readonly color: \"#9146FF\";\n readonly icon: \"twitch\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"user:read:email\"];\n readonly 'api-access': readonly [\"channel:read:subscriptions\", \"bits:read\", \"channel:manage:broadcast\", \"channel:read:stream_key\", \"user:read:follows\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://id.twitch.tv/oauth2/authorize\";\n readonly tokenUrl: \"https://id.twitch.tv/oauth2/token\";\n readonly profileUrl: \"https://api.twitch.tv/helix/users\";\n readonly revokeUrl: \"https://id.twitch.tv/oauth2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly reddit: {\n readonly name: \"Reddit\";\n readonly color: \"#FF4500\";\n readonly icon: \"reddit\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"identity\"];\n readonly 'api-access': readonly [\"read\", \"submit\", \"vote\", \"mysubreddits\", \"subscribe\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://www.reddit.com/api/v1/authorize\";\n readonly tokenUrl: \"https://www.reddit.com/api/v1/access_token\";\n readonly profileUrl: \"https://oauth.reddit.com/api/v1/me\";\n readonly revokeUrl: \"https://www.reddit.com/api/v1/revoke_token\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly linkedin: {\n readonly name: \"LinkedIn\";\n readonly color: \"#0077B5\";\n readonly icon: \"linkedin\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"r_liteprofile\", \"r_emailaddress\", \"w_member_social\", \"r_organization_social\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://www.linkedin.com/oauth/v2/authorization\";\n readonly tokenUrl: \"https://www.linkedin.com/oauth/v2/accessToken\";\n readonly profileUrl: \"https://api.linkedin.com/v2/me\";\n readonly revokeUrl: \"https://www.linkedin.com/oauth/v2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly slack: {\n readonly name: \"Slack\";\n readonly color: \"#E01E5A\";\n readonly icon: \"slack\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"channels:read\", \"chat:write\", \"users:read\", \"files:read\", \"im:read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://slack.com/oauth/v2/authorize\";\n readonly tokenUrl: \"https://slack.com/api/oauth.v2.access\";\n readonly profileUrl: \"https://slack.com/api/users.identity\";\n readonly revokeUrl: \"https://slack.com/api/auth.revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly notion: {\n readonly name: \"Notion\";\n readonly color: \"#000000\";\n readonly icon: \"notion\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"read\", \"write\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://api.notion.com/v1/oauth/authorize\";\n readonly tokenUrl: \"https://api.notion.com/v1/oauth/token\";\n readonly profileUrl: \"https://api.notion.com/v1/users/me\";\n readonly revokeUrl: \"https://api.notion.com/v1/oauth/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly medium: {\n readonly name: \"Medium\";\n readonly color: \"#000000\";\n readonly icon: \"medium\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"basicProfile\", \"publishPost\", \"listPublications\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://medium.com/m/oauth/authorize\";\n readonly tokenUrl: \"https://medium.com/v1/tokens\";\n readonly profileUrl: \"https://medium.com/v1/me\";\n readonly revokeUrl: \"https://medium.com/v1/tokens/revoke\";\n };\n readonly capabilities: {\n readonly pkce: false;\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly twitter: {\n readonly name: \"X\";\n readonly color: \"#000000\";\n readonly icon: \"twitter\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"tweet.read\", \"users.read\", \"follows.read\", \"tweet.write\", \"like.write\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://twitter.com/i/oauth2/authorize\";\n readonly tokenUrl: \"https://api.twitter.com/2/oauth2/token\";\n readonly profileUrl: \"https://api.twitter.com/2/users/me\";\n readonly revokeUrl: \"https://api.twitter.com/2/oauth2/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly mastodon: {\n readonly name: \"Mastodon\";\n readonly color: \"#6364FF\";\n readonly icon: \"mastodon\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"read\", \"write\", \"follow\", \"push\"];\n };\n readonly endpoints: {\n readonly authUrl: \"\";\n readonly tokenUrl: \"\";\n readonly profileUrl: \"\";\n readonly revokeUrl: \"\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly youtube: {\n readonly name: \"YouTube\";\n readonly color: \"#FF0000\";\n readonly icon: \"youtube\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/youtube.readonly\", \"https://www.googleapis.com/auth/youtube.upload\", \"https://www.googleapis.com/auth/youtube.force-ssl\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/youtube/v3/channels\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n readonly supabase: {\n readonly name: \"Supabase\";\n readonly color: \"#3ECF8E\";\n readonly icon: \"supabase\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly 'api-access': readonly [\"auth:read\", \"auth:write\", \"database:read\", \"database:write\", \"domains:read\", \"domains:write\", \"edge_functions:read\", \"edge_functions:write\", \"environment:read\", \"environment:write\", \"organizations:read\", \"projects:read\", \"projects:write\", \"rest:read\", \"rest:write\", \"secrets:read\", \"secrets:write\", \"storage:read\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://api.supabase.com/v1/oauth/authorize\";\n readonly tokenUrl: \"https://api.supabase.com/v1/oauth/token\";\n readonly profileUrl: \"\";\n readonly revokeUrl: \"\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#F1F3F5\";\n readonly textColor: \"#11181C\";\n readonly borderColor: \"#E6E8EB\";\n readonly hoverBackgroundColor: \"#E6E8EB\";\n readonly focusOutlineColor: \"#3ECF8E\";\n readonly fontWeight: \"500\";\n };\n };\n readonly vercel: {\n readonly name: \"Vercel\";\n readonly color: \"#000000\";\n readonly icon: \"vercel\";\n readonly type: \"oauth\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"email\", \"profile\", \"offline_access\"];\n readonly 'api-access': readonly [\"project\", \"project-env-vars\", \"deployment\", \"team\", \"user\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://vercel.com/oauth/authorize\";\n readonly tokenUrl: \"https://api.vercel.com/login/oauth/token\";\n readonly profileUrl: \"https://api.vercel.com/login/oauth/userinfo\";\n readonly revokeUrl: \"https://api.vercel.com/login/oauth/token/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n };\n}","ORDER_DIRECTION":"/** Order direction for query orderBy */\ndeclare const ORDER_DIRECTION: {\n readonly ASC: \"asc\";\n readonly DESC: \"desc\";\n}","PARTNER_ICONS":"/**\n * Partner icon constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PARTNER_ICONS: {\n readonly apple: \"apple\";\n readonly discord: \"discord\";\n readonly emailLink: \"emailLink\";\n readonly facebook: \"facebook\";\n readonly github: \"github\";\n readonly google: \"google\";\n readonly linkedin: \"linkedin\";\n readonly microsoft: \"microsoft\";\n readonly password: \"password\";\n readonly reddit: \"reddit\";\n readonly spotify: \"spotify\";\n readonly twitch: \"twitch\";\n readonly twitter: \"twitter\";\n readonly yahoo: \"yahoo\";\n readonly notion: \"notion\";\n readonly slack: \"slack\";\n readonly medium: \"medium\";\n readonly mastodon: \"mastodon\";\n readonly youtube: \"youtube\";\n}","PAYLOAD_EVENTS":"/**\n * Payload CMS event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PAYLOAD_EVENTS: {\n readonly DOCUMENT_CREATED: \"payload.document.created\";\n readonly DOCUMENT_UPDATED: \"payload.document.updated\";\n readonly DOCUMENT_DELETED: \"payload.document.deleted\";\n readonly MEDIA_CREATED: \"payload.media.created\";\n readonly MEDIA_UPDATED: \"payload.media.updated\";\n readonly MEDIA_DELETED: \"payload.media.deleted\";\n readonly GLOBAL_UPDATED: \"payload.global.updated\";\n readonly USER_CREATED: \"payload.user.created\";\n readonly USER_UPDATED: \"payload.user.updated\";\n readonly USER_DELETED: \"payload.user.deleted\";\n readonly CACHE_INVALIDATED: \"payload.cache.invalidated\";\n readonly PAGE_REGENERATED: \"payload.page.regenerated\";\n}","PERMISSIONS":"/**\n * Standard permission names\n * Apps can override these by providing their own permission constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const PERMISSIONS: {\n readonly READ_PUBLIC: \"read_public\";\n readonly READ_OWN_DATA: \"read_own_data\";\n readonly WRITE_OWN_DATA: \"write_own_data\";\n readonly READ_ALL_DATA: \"read_all_data\";\n readonly MANAGE_USERS: \"manage_users\";\n}","PLATFORMS":"/**\n * Supported platform identifiers\n * @constant\n */\ndeclare const PLATFORMS: {\n readonly VITE: \"vite\";\n readonly NEXTJS: \"nextjs\";\n readonly EXPO: \"expo\";\n readonly REACT_NATIVE: \"react-native\";\n readonly UNKNOWN: \"unknown\";\n}","PWA_ASSET_TYPES":"/**\n * PWA asset types\n * @constant\n */\ndeclare const PWA_ASSET_TYPES: {\n readonly MANIFEST: \"manifest\";\n readonly SERVICE_WORKER: \"service-worker\";\n readonly ICON: \"icon\";\n}","PWA_DISPLAY_MODES":"/**\n * PWA display modes\n * @constant\n */\ndeclare const PWA_DISPLAY_MODES: {\n readonly STANDALONE: \"standalone\";\n readonly FULLSCREEN: \"fullscreen\";\n readonly MINIMAL_UI: \"minimal-ui\";\n readonly BROWSER: \"browser\";\n}","ProductDeclarationSchema":"/**\n * Union schema for all product types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProductDeclarationSchema: v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","ProductDeclarationsSchema":"/**\n * Schema for product declarations object\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const ProductDeclarationsSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","ROUTE_SOURCES":"/**\n * Route discovery sources\n * @constant\n */\ndeclare const ROUTE_SOURCES: {\n readonly AUTO: \"auto-discovery\";\n readonly MANUAL: \"manual\";\n readonly HYBRID: \"hybrid\";\n}","STORAGE_SCOPES":"/**\n * Storage scope levels for data isolation\n * @constant\n */\ndeclare const STORAGE_SCOPES: {\n readonly USER: \"user\";\n readonly GLOBAL: \"global\";\n readonly SESSION: \"session\";\n}","STORAGE_TYPES":"/**\n * Supported storage backend types\n * @constant\n */\ndeclare const STORAGE_TYPES: {\n readonly LOCAL: \"localStorage\";\n readonly SESSION: \"sessionStorage\";\n readonly INDEXED_DB: \"indexedDB\";\n readonly MEMORY: \"memory\";\n}","STRIPE_EVENTS":"/**\n * Stripe event constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const STRIPE_EVENTS: {\n readonly PAYMENT_INTENT_SUCCEEDED: \"stripe.payment_intent.succeeded\";\n readonly PAYMENT_INTENT_FAILED: \"stripe.payment_intent.payment_failed\";\n readonly CHECKOUT_SESSION_COMPLETED: \"stripe.checkout.session.completed\";\n readonly CUSTOMER_CREATED: \"stripe.customer.created\";\n readonly CUSTOMER_UPDATED: \"stripe.customer.updated\";\n readonly CUSTOMER_DELETED: \"stripe.customer.deleted\";\n readonly INVOICE_CREATED: \"stripe.invoice.created\";\n readonly INVOICE_PAID: \"stripe.invoice.paid\";\n readonly INVOICE_PAYMENT_FAILED: \"stripe.invoice.payment_failed\";\n readonly SUBSCRIPTION_CREATED: \"stripe.subscription.created\";\n readonly SUBSCRIPTION_UPDATED: \"stripe.subscription.updated\";\n readonly SUBSCRIPTION_DELETED: \"stripe.subscription.deleted\";\n}","STRIPE_MODES":"/**\n * Standard payment mode values for Stripe checkout\n * Apps can override these by providing their own mode constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const STRIPE_MODES: {\n readonly PAYMENT: \"payment\";\n readonly SUBSCRIPTION: \"subscription\";\n}","SUBSCRIPTION_DURATIONS":"/**\n * Standard subscription duration values\n * Apps can override these by providing their own duration constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_DURATIONS: {\n readonly ONE_MONTH: \"1month\";\n readonly THREE_MONTHS: \"3months\";\n readonly SIX_MONTHS: \"6months\";\n readonly ONE_YEAR: \"1year\";\n readonly TWO_YEARS: \"2years\";\n readonly LIFETIME: \"lifetime\";\n}","SUBSCRIPTION_STATUS":"/**\n * Standard subscription status values from billing providers\n * Apps can override these by providing their own status constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_STATUS: {\n readonly ACTIVE: \"active\";\n readonly CANCELED: \"canceled\";\n readonly INCOMPLETE: \"incomplete\";\n readonly INCOMPLETE_EXPIRED: \"incomplete_expired\";\n readonly PAST_DUE: \"past_due\";\n readonly TRIALING: \"trialing\";\n readonly UNPAID: \"unpaid\";\n}","SUBSCRIPTION_TIERS":"/**\n * Standard subscription tier names\n * Apps can override these by providing their own tier constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SUBSCRIPTION_TIERS: {\n readonly FREE: \"free\";\n readonly PRO: \"pro\";\n readonly PREMIUM: \"premium\";\n}","SendEmailRequestSchema":"/** Schema for send email request (caller → handler) */\ndeclare const SendEmailRequestSchema: v.ObjectSchema<{\n /** Template ID from the registry */\n readonly templateId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n /** Recipient email address */\n readonly to: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;\n /** Template data (shape depends on template) */\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n /** Locale for i18n rendering (default: 'fr') */\n readonly locale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 5, undefined>]>, \"fr\">;\n /** Override \"from\" address */\n readonly from: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Override reply-to address */\n readonly replyTo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","SendEmailResponseSchema":"/** Schema for send email response */\ndeclare const SendEmailResponseSchema: v.ObjectSchema<{\n /** Whether the email was sent successfully */\n readonly success: v.BooleanSchema<undefined>;\n /** Provider message ID (for tracking) */\n readonly messageId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Error message if sending failed */\n readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","StripeBackConfigSchema":"/**\n * Schema for backend billing configuration (with hooks)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeBackConfigSchema: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<\"type\", [v.ObjectSchema<{\n readonly name: v.StringSchema<undefined>;\n readonly price: v.NumberSchema<undefined>;\n readonly currency: v.StringSchema<undefined>;\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly duration: v.StringSchema<undefined>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n}","StripeFrontConfigSchema":"/**\n * Schema for frontend billing configuration (display only)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeFrontConfigSchema: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly name: v.StringSchema<undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.StringSchema<undefined>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n /** Stripe price ID. */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","StripeOrderBackSchema":"/**\n * Back-config item for a multi-line, one-time order priced on the server\n * (`resolveLineItems` hook, TypeScript only).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderBackSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripeOrder\", undefined>;\n readonly name: v.StringSchema<undefined>;\n /** ISO 4217 currency of every resolved line */\n readonly currency: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, undefined>]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tax: v.VariantSchema<\"mode\", [v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"manual\", undefined>;\n readonly taxRateIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n }, undefined>, v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"automatic\", undefined>;\n }, undefined>], undefined>;\n /** Collect the buyer's tax ID (VAT number) */\n readonly taxIdCollection: v.PicklistSchema<[\"disabled\", \"optional\", \"required\"], undefined>;\n readonly billingAddressCollection: v.PicklistSchema<[\"auto\", \"required\"], undefined>;\n readonly shipping: v.OptionalSchema<v.ObjectSchema<{\n /** Uppercase ISO 3166-1 alpha-2 country codes the order can ship to (e.g. `FR`) */\n readonly allowedCountries: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, \"allowedCountries: uppercase ISO 3166-1 alpha-2 code expected (e.g. FR)\">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n /** Stripe Shipping Rate IDs offered at checkout (Stripe allows at most 5) */\n readonly shippingRateIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 5, \"shippingRateIds: at most 5 (Stripe limit)\">]>, undefined>;\n }, undefined>, undefined>;\n readonly customerCreation: v.PicklistSchema<[\"always\", \"if_required\"], undefined>;\n /** Generate a post-payment Stripe invoice */\n readonly invoiceCreation: v.BooleanSchema<undefined>;\n /** Stripe Payment Method Configuration ID (card, SEPA debit...). Omit to use the account default. */\n readonly paymentMethodConfiguration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n}","StripeOrderShippingSchema":"/**\n * Shipping collection for StripeOrder.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderShippingSchema: v.ObjectSchema<{\n /** Uppercase ISO 3166-1 alpha-2 country codes the order can ship to (e.g. `FR`) */\n readonly allowedCountries: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, \"allowedCountries: uppercase ISO 3166-1 alpha-2 code expected (e.g. FR)\">]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n /** Stripe Shipping Rate IDs offered at checkout (Stripe allows at most 5) */\n readonly shippingRateIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MaxLengthAction<string[], 5, \"shippingRateIds: at most 5 (Stripe limit)\">]>, undefined>;\n}","StripeOrderTaxSchema":"/**\n * Tax handling for StripeOrder. Unit amounts are always excl. VAT\n * (`tax_behavior: 'exclusive'`).\n * - `manual`: Stripe Tax Rate IDs applied to every line\n * - `automatic`: Stripe Tax computes the tax (reverse charge from the buyer's tax ID)\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeOrderTaxSchema: v.VariantSchema<\"mode\", [v.ObjectSchema<{\n readonly mode: v.LiteralSchema<\"manual\", undefined>;\n readonly taxRateIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n}","StripePaymentSchema":"/**\n * Schema for one-time payment products\n * Core fields only - no assumptions about integrations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripePaymentSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripePayment\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID. */\n readonly priceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>, undefined>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Duration is required\">]>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","StripeSubscriptionSchema":"/**\n * Schema for recurring subscription products\n * Core fields only - no assumptions about integrations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const StripeSubscriptionSchema: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"StripeSubscription\", undefined>;\n readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Product name is required\">]>;\n readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly price: v.StringSchema<undefined>;\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, \"EUR\">;\n /** Stripe price ID. Required for subscriptions (price_data not supported for recurring). */\n readonly priceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Stripe price ID is required\">]>;\n readonly tier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Tier is required\">]>;\n readonly duration: v.PicklistSchema<[\"1month\", \"3months\", \"6months\", \"1year\", \"2years\", \"lifetime\"], undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n}","SubscriptionClaimsSchema":"/**\n * Schema for subscription claims stored in Firebase Auth custom claims\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SubscriptionClaimsSchema: v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","SubscriptionDataSchema":"/**\n * Schema for subscription data from billing providers\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const SubscriptionDataSchema: v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","USER_ROLES":"/**\n * Standard user role names\n * Apps can override these by providing their own role constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const USER_ROLES: {\n readonly GUEST: \"guest\";\n readonly USER: \"user\";\n readonly ADMIN: \"admin\";\n readonly SUPER: \"super\";\n}","UserSubscriptionSchema":"/**\n * Schema for user subscription data\n * Uses constants for enum values to ensure consistency\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const UserSubscriptionSchema: v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","VISIBILITY":"/**\n * Visibility levels for entity fields (runtime constants)\n * Controls who can SEE this field in responses\n * Matches USER_ROLES hierarchy + technical + hidden + owner\n *\n * - guest: Everyone (even unauthenticated)\n * - user: Authenticated users (users see guest + user fields)\n * - admin: Admins only (admins see guest + user + admin fields)\n * - super: Super admins only (see all non-technical fields)\n * - technical: System fields (shown as read-only in edit forms, admins+ only)\n * - hidden: Never exposed to client (passwords, tokens, API keys)\n * - owner: Visible only when request.auth.uid matches one of entity.ownership.ownerFields on the document\n */\ndeclare const VISIBILITY: {\n readonly GUEST: \"guest\";\n readonly USER: \"user\";\n readonly ADMIN: \"admin\";\n readonly SUPER: \"super\";\n readonly TECHNICAL: \"technical\";\n readonly HIDDEN: \"hidden\";\n readonly OWNER: \"owner\";\n}","WebhookEventSchema":"/**\n * Schema for webhook event data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const WebhookEventSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","checkGitHubAccessSchema":"/**\n * Schema for checking GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const checkGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n}","createDefaultSubscriptionClaims":"/**\n * Factory function to create default subscription claims\n * @param userId - User ID for the subscription\n * @returns Default subscription claims for free tier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDefaultSubscriptionClaims(userId: string): SubscriptionClaims;","createDefaultUserProfile":"/**\n * Factory function to create default user profile\n * @param userId - User ID for the profile\n * @returns Default user profile with minimal required fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDefaultUserProfile(userId: string): UserProfile;","createEntitySchema":"/**\n * Schema for creating an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const createEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n readonly idempotencyKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","deleteEntitySchema":"/**\n * Schema for deleting an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const deleteEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n}","disconnectOAuthSchema":"/**\n * Schema for disconnecting OAuth\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const disconnectOAuthSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n}","exchangeTokenSchema":"/**\n * Schema for OAuth token exchange requests\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const exchangeTokenSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n readonly purpose: v.BaseSchema<unknown, OAuthPurpose, v.BaseIssue<unknown>>;\n readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Authorization code is required\">]>;\n readonly redirectUri: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, \"Valid redirect URI is required\">]>;\n readonly codeVerifier: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly state: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly instance: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","getBreakpointFromWidth":"/**\n * Get breakpoint from window width\n *\n * @param width - Window width in pixels\n * @returns The corresponding breakpoint\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBreakpointFromWidth(width: number): Breakpoint;","getBreakpointUtils":"/**\n * Get breakpoint utilities from window dimensions\n *\n * @param width - Window width in pixels\n * @param height - Window height in pixels\n * @returns Computed breakpoint utilities\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBreakpointUtils(width: number, height: number): BreakpointUtils;","getConnectionsSchema":"/**\n * Schema for getting OAuth connections\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const getConnectionsSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n}","getEntitySchema":"/**\n * Schema for getting an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const getEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n}","githubPermissionSchema":"/**\n * Schema for GitHub access permission levels\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const githubPermissionSchema: v.PicklistSchema<[string, ...string[]], undefined>;","githubRepoConfigSchema":"/**\n * Schema for GitHub repository configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const githubRepoConfigSchema: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n}","grantGitHubAccessSchema":"/**\n * Schema for granting GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const grantGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n readonly permission: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, \"push\">;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","isAuthPartnerId":"/**\n * Checks if a partner ID is an authentication partner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isAuthPartnerId(id: PartnerId): id is AuthPartnerId;","isBreakpoint":"/**\n * Check if a breakpoint matches the current width\n *\n * @param width - Window width in pixels\n * @param breakpoint - Target breakpoint to check\n * @returns Whether the width matches the breakpoint\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isBreakpoint(width: number, breakpoint: Breakpoint): boolean;","isOAuthPartnerId":"/**\n * Checks if a partner ID is an OAuth partner\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isOAuthPartnerId(id: PartnerId): id is OAuthPartnerId;","listEntitiesSchema":"/**\n * Schema for listing entities.\n *\n * Default limit is **1000** (server-enforced max: 1000).\n * For collections larger than 1000 items, use server-side pagination\n * (`pagination='server'` on EntityList, or cursor-based `startAfter` in hooks).\n *\n * @example\n * // Fetch up to 1000 items (default)\n * { collection: 'products' }\n *\n * @example\n * // Fetch 200 items\n * { collection: 'products', limit: 200 }\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const listEntitiesSchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 1000>;\n readonly offset: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, 0>;\n readonly orderBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly orderDirection: v.OptionalSchema<v.PicklistSchema<[\"asc\", \"desc\"], undefined>, \"desc\">;\n readonly where: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly field: v.StringSchema<undefined>;\n readonly operator: v.PicklistSchema<[\"==\", \"!=\", \"<\", \"<=\", \">\", \">=\", \"array-contains\", \"in\", \"not-in\"], undefined>;\n readonly value: v.UnknownSchema;\n }, undefined>, undefined>, undefined>;\n}","overrideFeatures":"/**\n * Override features for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideFeatures({\n * BASIC_ACCESS: 'read_access',\n * ADVANCED_FEATURES: 'write_access',\n * API_ACCESS: 'api_calls',\n * PRIORITY_SUPPORT: 'dedicated_support'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideFeatures(customFeatures: Partial<typeof FEATURES>): void;","overridePaymentModes":"/**\n * Override payment modes for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overridePaymentModes({\n * PAYMENT: 'one_time',\n * SUBSCRIPTION: 'recurring'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overridePaymentModes(customModes: Partial<typeof STRIPE_MODES>): void;","overridePermissions":"/**\n * Override permissions for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overridePermissions({\n * READ_PUBLIC: 'view_public',\n * READ_OWN_DATA: 'view_profile',\n * WRITE_OWN_DATA: 'edit_profile',\n * READ_ALL_DATA: 'view_all',\n * MANAGE_USERS: 'admin_users'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overridePermissions(customPermissions: Partial<typeof PERMISSIONS>): void;","overrideSubscriptionStatus":"/**\n * Override subscription status for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideSubscriptionStatus({\n * ACTIVE: 'subscribed',\n * CANCELED: 'cancelled',\n * TRIALING: 'trial'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideSubscriptionStatus(customStatus: Partial<typeof SUBSCRIPTION_STATUS>): void;","overrideSubscriptionTiers":"/**\n * Override subscription tiers for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideSubscriptionTiers({\n * FREE: 'basic',\n * PRO: 'professional',\n * PREMIUM: 'enterprise'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideSubscriptionTiers(customTiers: Partial<typeof SUBSCRIPTION_TIERS>): void;","overrideUserRoles":"/**\n * Override user roles for custom app needs\n * @example\n * ```typescript\n * // In your app's config\n * overrideUserRoles({\n * GUEST: 'visitor',\n * USER: 'member',\n * ADMIN: 'moderator'\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function overrideUserRoles(customRoles: Partial<typeof USER_ROLES>): void;","refreshTokenSchema":"/**\n * Schema for refreshing OAuth token\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const refreshTokenSchema: v.ObjectSchema<{\n readonly provider: v.BaseSchema<unknown, OAuthPartnerId, v.BaseIssue<unknown>>;\n readonly refreshToken: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Refresh token is required\">]>;\n readonly redirectUri: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, \"Valid redirect URI is required\">]>;\n}","revokeGitHubAccessSchema":"/**\n * Schema for revoking GitHub repository access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const revokeGitHubAccessSchema: v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"User ID is required\">]>;\n readonly githubUsername: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"GitHub username is required\">]>;\n readonly repoConfig: v.ObjectSchema<{\n readonly owner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository owner is required\">]>;\n readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Repository name is required\">]>;\n }, undefined>;\n}","updateEntitySchema":"/**\n * Schema for updating an entity\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const updateEntitySchema: v.ObjectSchema<{\n readonly collection: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Collection name is required\">]>;\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, \"Entity ID is required\">]>;\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n readonly merge: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n}","validateAIChatRequest":"declare function validateAIChatRequest(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly messages: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>, undefined>, v.MinLengthAction<{\n role: \"user\" | \"assistant\" | \"system\";\n content: string;\n id?: string | undefined;\n createdAt?: string | undefined;\n }[], 1, undefined>]>;\n readonly provider: v.OptionalSchema<v.PicklistSchema<[\"anthropic\", \"openai\", \"google\"], undefined>, undefined>;\n readonly model: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly maxTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;\n readonly temperature: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2, undefined>]>, undefined>;\n readonly systemPrompt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly stream: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly tools: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly parameters: v.ObjectSchema<{\n readonly type: v.LiteralSchema<\"object\", undefined>;\n readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<any>, undefined>;\n readonly required: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>;\n }, undefined>, undefined>, undefined>;\n}","validateAIChatResponse":"declare function validateAIChatResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly message: v.ObjectSchema<{\n readonly role: v.PicklistSchema<[\"user\", \"assistant\", \"system\"], undefined>;\n readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly createdAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly usage: v.OptionalSchema<v.ObjectSchema<{\n readonly promptTokens: v.NumberSchema<undefined>;\n readonly completionTokens: v.NumberSchema<undefined>;\n readonly totalTokens: v.NumberSchema<undefined>;\n }, undefined>, undefined>;\n readonly finishReason: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly toolCalls: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly args: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n}","validateAuthPartners":"/**\n * Validates authentication partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthPartners(): v.SafeParseResult<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly type: v.PicklistSchema<[\"auth\", \"both\"], undefined>;\n readonly scopes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly firebaseProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly color: v.StringSchema<undefined>;\n readonly icon: v.StringSchema<undefined>;\n readonly customParameters: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly button: v.ObjectSchema<{\n readonly backgroundColor: v.StringSchema<undefined>;\n readonly textColor: v.StringSchema<undefined>;\n readonly borderColor: v.StringSchema<undefined>;\n readonly hoverBackgroundColor: v.StringSchema<undefined>;\n readonly focusOutlineColor: v.StringSchema<undefined>;\n readonly fontWeight: v.OptionalSchema<v.StringSchema<undefined>, \"500\">;\n readonly textKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n}","validateAuthSchemas":"/**\n * Validate that all schemas are properly configured\n * Only runs when explicitly called during development\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthSchemas(): {\n success: boolean;\n results: {\n authUser: v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n }, undefined>>;\n userSubscription: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n customClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n }, undefined>>;\n getUserAuthStatus: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n }, undefined>>;\n getCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claimKeys: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>>;\n setCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>;\n readonly merge: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n }, undefined>>;\n removeCustomClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly claimKeys: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;\n }, undefined>>;\n };\n}","validateAuthUser":"/**\n * Validate auth user data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateAuthUser(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly emailVerified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly lastLoginAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly providerData: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly providerId: v.StringSchema<undefined>;\n readonly uid: v.StringSchema<undefined>;\n readonly email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;\n readonly displayName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly photoURL: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>, undefined>;\n readonly phoneNumber: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly customClaims: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>, undefined>;\n}","validateBillingSchemas":"/**\n * Validate all billing schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateBillingSchemas(): {\n success: boolean;\n results: {\n createCheckoutSessionRequest: v.SafeParseResult<v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: currency code, defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n }, undefined>, v.RawTransformAction<{\n billingConfigKey?: string | undefined;\n lineItems?: {\n productId: string;\n quantity: number;\n }[] | undefined;\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n userId?: string | undefined;\n productId?: string | undefined;\n priceId?: string | undefined;\n currency?: string | undefined;\n userEmail?: string | undefined;\n mode?: \"payment\" | \"subscription\" | undefined;\n }, {\n billingConfigKey: string;\n lineItems: {\n productId: string;\n quantity: number;\n }[];\n successUrl: string;\n cancelUrl: string;\n customerEmail?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n userId?: string | undefined;\n productId?: string | undefined;\n priceId?: string | undefined;\n currency?: string | undefined;\n userEmail?: string | undefined;\n mode?: \"payment\" | \"subscription\" | undefined;\n }>]>>;\n createCheckoutSessionResponse: v.SafeParseResult<v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n }, undefined>>;\n subscriptionData: v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n subscriptionClaims: v.SafeParseResult<v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n }, undefined>>;\n webhookEvent: v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>>;\n checkoutSessionMetadata: v.SafeParseResult<v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>>;\n };\n}","validateCheckoutSessionMetadata":"/**\n * Validate checkout session metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCheckoutSessionMetadata(data: unknown): v.SafeParseResult<v.LooseObjectSchema<{\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly firebaseUid: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateCreateCheckoutSessionRequest":"/**\n * Validate (and normalize) a create checkout session request\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCreateCheckoutSessionRequest(data: unknown): v.SafeParseResult<v.SchemaWithPipe<readonly [v.ObjectSchema<{\n /** Key in the app's StripeBackConfig */\n readonly billingConfigKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;\n readonly lineItems: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{\n /** App product ID. For StripePayment/StripeSubscription: the billing config key. */\n readonly productId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;\n readonly quantity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10000, undefined>]>;\n }, undefined>, undefined>, v.MinLengthAction<{\n productId: string;\n quantity: number;\n }[], 1, \"At least one line item is required\">, v.MaxLengthAction<{\n productId: string;\n quantity: number;\n }[], 100, \"At most 100 line items\">]>, undefined>;\n readonly successUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly cancelUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;\n readonly customerEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n readonly metadata: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly allowPromotionCodes: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n /** 0.1.x: ignored by the framework providers (they pass the authenticated user) */\n readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly productId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: Stripe price ID (must match the back config priceId when it has one) */\n readonly priceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** 0.1.x: currency code, defaults to the back config currency */\n readonly currency: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.LengthAction<string, 3, \"Currency must be 3-letter ISO code\">]>, undefined>;\n readonly userEmail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>, undefined>;\n /** 0.1.x: Stripe mode. Omitted: derived from the back config item type. */\n readonly mode: v.OptionalSchema<v.PicklistSchema<[\"payment\", \"subscription\"], undefined>, undefined>;\n}","validateCreateCheckoutSessionResponse":"/**\n * Validate create checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCreateCheckoutSessionResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly sessionId: v.StringSchema<undefined>;\n readonly sessionUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;\n}","validateCustomClaims":"/**\n * Validate custom claims data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCustomClaims(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly role: v.OptionalSchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>;\n readonly subscription: v.OptionalSchema<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n }, undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly permissions: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<[string, ...string[]], undefined>, undefined>, undefined>;\n readonly githubAccess: v.OptionalSchema<v.ObjectSchema<{\n readonly username: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly teamAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly repoAccess: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n }, undefined>, undefined>;\n}","validateOAuthPartners":"/**\n * Validates OAuth partners configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateOAuthPartners(): v.SafeParseResult<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{\n readonly type: v.PicklistSchema<[\"oauth\", \"both\"], undefined>;\n readonly scopes: v.ObjectSchema<{\n readonly authentication: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly 'api-access': v.ArraySchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n readonly endpoints: v.ObjectSchema<{\n readonly authUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly tokenUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly profileUrl: v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>;\n readonly revokeUrl: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<\"\", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>], undefined>, undefined>;\n }, undefined>;\n readonly capabilities: v.OptionalSchema<v.ObjectSchema<{\n readonly pkce: v.OptionalSchema<v.BooleanSchema<undefined>, false>;\n readonly codeChallengeMethod: v.OptionalSchema<v.PicklistSchema<[\"S256\", \"plain\"], undefined>, \"S256\">;\n }, undefined>, undefined>;\n readonly name: v.StringSchema<undefined>;\n readonly color: v.StringSchema<undefined>;\n readonly icon: v.StringSchema<undefined>;\n readonly customParameters: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;\n readonly button: v.ObjectSchema<{\n readonly backgroundColor: v.StringSchema<undefined>;\n readonly textColor: v.StringSchema<undefined>;\n readonly borderColor: v.StringSchema<undefined>;\n readonly hoverBackgroundColor: v.StringSchema<undefined>;\n readonly focusOutlineColor: v.StringSchema<undefined>;\n readonly fontWeight: v.OptionalSchema<v.StringSchema<undefined>, \"500\">;\n readonly textKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n }, undefined>;\n}","validateSendEmailRequest":"declare function validateSendEmailRequest(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n /** Template ID from the registry */\n readonly templateId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n /** Recipient email address */\n readonly to: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>]>;\n /** Template data (shape depends on template) */\n readonly data: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n /** Locale for i18n rendering (default: 'fr') */\n readonly locale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 5, undefined>]>, \"fr\">;\n /** Override \"from\" address */\n readonly from: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Override reply-to address */\n readonly replyTo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateSendEmailResponse":"declare function validateSendEmailResponse(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n /** Whether the email was sent successfully */\n readonly success: v.BooleanSchema<undefined>;\n /** Provider message ID (for tracking) */\n readonly messageId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n /** Error message if sending failed */\n readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n}","validateStripeBackConfig":"/**\n * Helper to validate backend config at runtime\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateStripeBackConfig(config: unknown): {\n [x: string]: {\n name: string;\n price: number;\n currency: string;\n priceId?: string | undefined;\n tier: string;\n duration: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n type: \"StripePayment\";\n } | {\n name: string;\n price: number;\n currency: string;\n priceId?: string | undefined;\n tier: string;\n duration: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n type: \"StripeSubscription\";\n } | {\n type: \"StripeOrder\";\n name: string;\n currency: string;\n description?: string | undefined;\n metadata?: {\n [x: string]: string;\n } | undefined;\n allowPromotionCodes?: boolean | undefined;\n tax: {\n mode: \"manual\";\n taxRateIds: string[];\n } | {\n mode: \"automatic\";\n };\n taxIdCollection: \"optional\" | \"disabled\" | \"required\";\n billingAddressCollection: \"required\" | \"auto\";\n shipping?: {\n allowedCountries: string[];\n shippingRateIds?: string[] | undefined;\n } | undefined;\n customerCreation: \"always\" | \"if_required\";\n invoiceCreation: boolean;\n paymentMethodConfiguration?: string | undefined;\n };\n}","validateStripeFrontConfig":"/**\n * Helper to validate frontend config at runtime\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateStripeFrontConfig(config: unknown): {\n [x: string]: {\n name: string;\n price: string;\n currency: string;\n description?: string | undefined;\n features?: string[] | undefined;\n priceId?: string | undefined;\n allowPromotionCodes?: boolean | undefined;\n };\n}","validateSubscriptionClaims":"/**\n * Validate subscription claims\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateSubscriptionClaims(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly tier: v.StringSchema<undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n}","validateSubscriptionData":"/**\n * Validate subscription data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateSubscriptionData(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.StringSchema<undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","validateUserSubscription":"/**\n * Validate user subscription data\n * @param data - Data to validate\n * @returns Validation result with success/error information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateUserSubscription(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly userId: v.StringSchema<undefined>;\n readonly tier: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly status: v.PicklistSchema<[string, ...string[]], undefined>;\n readonly isActive: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly features: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n readonly subscriptionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;\n readonly customerId: v.StringSchema<undefined>;\n readonly subscriptionEnd: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>, undefined>;\n readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;\n readonly updatedAt: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","validateWebhookEvent":"/**\n * Validate webhook event\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateWebhookEvent(data: unknown): v.SafeParseResult<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly type: v.StringSchema<undefined>;\n readonly data: v.ObjectSchema<{\n readonly object: v.AnySchema;\n }, undefined>;\n readonly created: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;\n}","AIAPI":"/** AI API surface - returned by useAIChat, degraded when @donotdev/ai not installed */\ninterface AIAPI {\n /** Conversation messages */\n messages: AIMessage[];\n /** Send a message */\n append: (content: string) => void;\n /** Stop current stream */\n stop: () => void;\n /** Whether a response is streaming */\n isLoading: boolean;\n /** Current error */\n error: Error | undefined;\n /** Clear conversation */\n clearMessages: () => void;\n /** Whether AI is available (auth + consent) */\n isAvailable: boolean;\n /** Current input value (controlled) */\n input: string;\n /** Set input value */\n setInput: (value: string) => void;\n /** Submit the current input */\n handleSubmit: (e?: any) => void;\n /** Cost tracking (billed cost only - provider cost is server-side only) */\n cost: {\n lastCost: AICostResult | null;\n sessionCost: AICostResult;\n formattedBilledCost: string;\n };\n /** Tool calls from the latest assistant response */\n toolCalls: AIToolCall[];\n}","AIChatRequest":"/** Request payload for an AI chat completion. */\ntype AIChatRequest = v.InferOutput<typeof AIChatRequestSchema>;","AIChatResponse":"/** Response payload from an AI chat completion. */\ntype AIChatResponse = v.InferOutput<typeof AIChatResponseSchema>;","AIConfig":"/** Configuration for AI feature (consumer-facing) */\ninterface AIConfig {\n provider: AIProvider;\n model?: string;\n maxTokens?: number;\n temperature?: number;\n systemPrompt?: string;\n}","AICostConfig":"/** Consumer-facing cost configuration */\ninterface AICostConfig {\n /** Markup multiplier for rebilling (provider cost x markup = billed cost) */\n markup: number;\n /** Monthly token budget per user (0 = unlimited) */\n monthlyBudgetTokens: number;\n /** Whether to show cost to end users (false = admin only) */\n showCostToUsers: boolean;\n /** Currency for display */\n displayCurrency: string;\n}","AICostEvent":"/** Real-time cost event for billing integration */\ninterface AICostEvent {\n type: 'cost_update';\n requestId: string;\n cost: AICostResult;\n cumulative: AICostResult;\n}","AICostRecord":"/** Server-side cost record (written per AI request) */\ninterface AICostRecord {\n userId: string;\n model: string;\n provider: string;\n usage: AIUsage;\n providerCost: number;\n billedCost: number;\n markup: number;\n timestamp: string;\n requestId: string;\n}","AICostResult":"/** Cost calculation result */\ninterface AICostResult {\n /** Raw provider cost in USD (server-side only, never expose to end users) */\n providerCost: number;\n /** Marked-up cost for consumer billing (what users owe) */\n billedCost: number;\n /** Markup multiplier applied */\n markup: number;\n /** Breakdown */\n breakdown: {\n promptTokens: number;\n completionTokens: number;\n promptCost: number;\n completionCost: number;\n };\n}","AIErrorCode":"/** AI error code type (derived from AI_ERROR_CODES constant) */\ntype AIErrorCode = (typeof AI_ERROR_CODES)[keyof typeof AI_ERROR_CODES];","AIMessage":"/** A single message in an AI chat conversation. */\ntype AIMessage = v.InferOutput<typeof AIMessageSchema>;","AIModelPricing":"/** Per-model token pricing */\ninterface AIModelPricing {\n /** Cost per 1M input tokens in USD */\n promptPer1M: number;\n /** Cost per 1M output tokens in USD */\n completionPer1M: number;\n /** Currency code */\n currency: 'usd';\n}","AIProvider":"/** AI provider type */\ntype AIProvider = (typeof AI_PROVIDERS)[keyof typeof AI_PROVIDERS];","AIProviderConfig":"/** Configuration for an AI provider backend. */\ntype AIProviderConfig = v.InferOutput<typeof AIProviderConfigSchema>;","AIRateLimitConfig":"/** Rate limit configuration for AI handler */\ninterface AIRateLimitConfig {\n /** Maximum requests per window */\n maxRequests: number;\n /** Window duration in milliseconds */\n windowMs: number;\n}","AIRouteConfig":"/** AI route configuration (server-side) */\ninterface AIRouteConfig {\n /** AI provider */\n provider: AIProvider;\n /** Model ID */\n model?: string;\n /** Max output tokens */\n maxTokens?: number;\n /** Temperature */\n temperature?: number;\n /** System prompt */\n systemPrompt?: string;\n /** Cost configuration */\n cost?: AICostConfig;\n /** Rate limit configuration */\n rateLimitConfig?: AIRateLimitConfig;\n /** Tool definitions available to the model */\n tools?: Record<string, AIToolDefinition>;\n}","AITierId":"/** AI tier identifier derived from AI_TIERS constant. */\ntype AITierId = (typeof AI_TIERS)[keyof typeof AI_TIERS]['id'];","AIToolCall":"/** Result of a tool call made by the model */\ninterface AIToolCall {\n /** Tool call ID (from provider) */\n id: string;\n /** Tool name */\n name: string;\n /** Parsed arguments */\n args: Record<string, unknown>;\n}","AIToolDefinition":"/** AI tool definition - JSON Schema based, provider-agnostic */\ninterface AIToolDefinition {\n /** Tool description (sent to the model) */\n description: string;\n /** Tool parameters as JSON Schema object */\n parameters: {\n type: 'object';\n properties: Record<string, AIToolParameter>;\n required?: string[];\n };\n}","AIToolParameter":"/** JSON Schema property definition for AI tool parameters */\ninterface AIToolParameter {\n /** JSON Schema type */\n type: 'string' | 'number' | 'boolean' | 'array' | 'object';\n /** Parameter description (sent to the model) */\n description?: string;\n /** Enum constraint */\n enum?: string[];\n /** Array items schema */\n items?: AIToolParameter;\n /** Object properties */\n properties?: Record<string, AIToolParameter>;\n /** Required property names (for object type) */\n required?: string[];\n}","AIUsage":"/** Token usage statistics for an AI completion. */\ntype AIUsage = v.InferOutput<typeof AIUsageSchema>;","AccountLinkResult":"/**\n * Represents the outcome of an attempt to link an additional authentication provider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AccountLinkResult {\n /** Indicates whether the overall linking process was successful */\n success: boolean;\n /** The provider that was linked */\n provider: string;\n /** Error message if the linking failed */\n error?: string;\n /** Additional data about the linked account */\n data?: Record<string, any>;\n}","AccountLinkingInfo":"/**\n * Information stored in sessionStorage for account linking flow\n * Firebase 12.3 stores credentials, we only store UI state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AccountLinkingInfo {\n email: string;\n existingProvider: AuthPartnerId;\n newProvider: string;\n timestamp: number;\n}","AdminCheckHookResult":"/**\n * Result type for the useAdminCheck hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AdminCheckHookResult {\n isAdmin: boolean;\n isLoading: boolean;\n}","AdminClaims":"/**\n * Defines custom claims specifically for administrative users.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AdminClaims {\n /** Flag indicating if the user has administrative privileges */\n isAdmin: boolean;\n /** Optional role or permission level */\n role?: string;\n /** Optional department or team */\n department?: string;\n /** Additional admin-specific claims */\n [key: string]: any;\n}","AggregateConfig":"/**\n * Aggregation configuration for entity analytics\n *\n * @example\n * ```typescript\n * const carsAnalyticsConfig: AggregateConfig = {\n * metrics: [\n * { field: '*', operation: 'count', as: 'total' },\n * { field: 'price', operation: 'sum', as: 'totalValue' },\n * { field: 'price', operation: 'avg', as: 'avgPrice' },\n * ],\n * groupBy: [\n * {\n * field: 'status',\n * metrics: [\n * { field: '*', operation: 'count', as: 'count' },\n * { field: 'price', operation: 'sum', as: 'value' },\n * ],\n * },\n * ],\n * where: [['isActive', '==', true]],\n * };\n * ```\n */\ninterface AggregateConfig {\n /** Top-level metrics (computed on entire collection) */\n metrics?: MetricDefinition[];\n /** Group by configurations */\n groupBy?: GroupByDefinition[];\n /** Optional global filters */\n where?: Array<[string, AggregateFilterOperator | string, unknown]>;\n}","AggregateFilterOperator":"/** Filter operator type for aggregation queries. */\ntype AggregateFilterOperator = (typeof AGGREGATE_FILTER_OPERATORS)[keyof typeof AGGREGATE_FILTER_OPERATORS];","AggregateOperation":"/** Aggregation operation type derived from AGGREGATE_OPERATIONS constant. */\ntype AggregateOperation = (typeof AGGREGATE_OPERATIONS)[keyof typeof AGGREGATE_OPERATIONS];","AggregateRequest":"/**\n * Request payload for aggregate function calls\n */\ninterface AggregateRequest {\n /** Optional runtime filters (merged with config filters) */\n where?: Array<[string, AggregateFilterOperator | string, unknown]>;\n /** Optional date range filter */\n dateRange?: {\n field: string;\n start?: string;\n end?: string;\n };\n}","AggregateResponse":"/**\n * Response from aggregate function\n */\ninterface AggregateResponse {\n /** Computed top-level metrics */\n metrics: Record<string, number | null>;\n /** Grouped metrics by field */\n groups: Record<string, Record<string, Record<string, number | null>>>;\n /** Metadata about the aggregation */\n meta: {\n collection: string;\n totalDocs: number;\n computedAt: string;\n };\n}","AnyEntity":"/**\n * Widened entity type for props and APIs that accept any `defineEntity()` result\n * without casting to default {@link Entity}.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype AnyEntity = Entity<Record<string, EntityField>>;","AnyFieldValue":"/**\n * Any valid field value - includes built-in types plus custom registered types\n * Uses `unknown` since consumers can register custom field types via RegisterFieldType\n */\ntype AnyFieldValue = unknown;","AnyValibotSchema":"/**\n * A valibot schema with an inferable output type. Accepts the generic base\n * schema shape used across the monorepo without locking to a specific issue type.\n */\ntype AnyValibotSchema = v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;","ApiResponse":"/**\n * Generic API response format for consistent error handling\n * @template T - The type of data in the response\n */\ninterface ApiResponse<T> {\n /** Indicates whether the operation was successful */\n success: boolean;\n /** The data returned by the operation (if successful) */\n data?: T;\n /** Error information (if the operation failed) */\n error?: {\n /** A machine-readable error code */\n code: string;\n /** A human-readable error message */\n message: string;\n };\n}","AppConfig":"/** Top-level application configuration passed to DoNotDevProvider. */\ninterface AppConfig {\n /** App metadata and branding */\n app?: AppMetadata;\n /** Authentication routes - partial override of defaults */\n auth?: Partial<AuthConfig> | false;\n /** SEO configuration (set to false to disable) */\n seo?: SEOConfig | false;\n /** Favicon configuration (set to false to disable) */\n favicon?: FaviconConfig | false;\n /** Layout preset for store initialization (defaults to 'landing' if invalid/empty) */\n preset?: string;\n /** Custom presets — same shape as built-in presets, keyed by name */\n customPresets?: Record<string, PresetConfig>;\n /** Feature flags */\n features?: FeaturesConfig;\n /** Query cache configuration (defaults: 5min staleTime, refetch on focus/reconnect) */\n query?: QueryConfig;\n /**\n * Server-side rendering (Next adapter). **Defaults to `true`** — generated page\n * wrappers render directly and the provider tree renders on the server, so page\n * content is present in the initial HTML (real, crawlable SSR). Set to `false`\n * to opt OUT and restore the legacy client-only render (content appears only\n * after hydration). The provider tree is store-driven, so SSR routes render\n * dynamically at request time.\n */\n ssr?: boolean;\n}","AppCookieCategories":"/**\n * App cookie categories type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AppCookieCategories = Partial<DoNotDevCookieCategories> & {\n necessary: boolean;\n}","AppMetadata":"/**\n * App metadata and branding configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppMetadata {\n /** Application name */\n name?: string;\n /** Short application name for mobile/compact displays (defaults to name if not set) */\n shortName?: string;\n /** Application description */\n description?: string;\n /** Social and external links */\n links?: {\n /** GitHub repository URL */\n github?: string;\n /** Twitter/X profile URL */\n twitter?: string;\n /** LinkedIn profile URL */\n linkedin?: string;\n /** Support/contact URL */\n support?: string;\n /** Documentation URL */\n docs?: string;\n /** Blog URL */\n blog?: string;\n };\n /** Footer configuration\n * - `null`: Explicitly hide footer\n * - `undefined`: Use framework default footer\n * - `{ copyright?: ..., legalLinks?: ... }`: Custom footer configuration\n */\n footer?: {\n /** Copyright configuration\n * - `null`: Hide copyright\n * - `undefined`: Use default (© YEAR appName. All rights reserved)\n * - `string`: Custom copyright text\n */\n copyright?: null | string;\n /** Legal links configuration\n * - `null`: Hide legal links\n * - `Array<{ path, label }>`: Custom legal links (labels can be i18n keys via maybeTranslate)\n * - `undefined`: Use framework defaults (Privacy Policy, Terms of Service with i18n labels)\n */\n legalLinks?: null | Array<{\n path: string;\n label: string;\n }>;\n } | null;\n /** Additional application metadata */\n metadata?: Record<string, any>;\n}","AppProvidersProps":"/**\n * Application providers props\n *\n * Clean, minimal API for configuring application providers with smart defaults.\n *\n * @example\n * ```typescript\n * // Minimal configuration\n * <ViteAppProviders\n * config={{ app: { name: 'My App' } }}\n * />\n *\n * // Full configuration\n * <ViteAppProviders\n * config={{\n * app: { name: 'My App' },\n * auth: { authRoute: '/signin' },\n * seo: {},\n * layout: { preset: 'landing' },\n * features: { debug: true }\n * }}\n * layout={{\n * header: { end: () => <LoginButton /> },\n * footer: () => <CustomFooter />\n * }}\n * />\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppProvidersProps {\n /**\n * Consolidated application configuration\n *\n * All configuration is optional with smart defaults.\n * Pass only what you need to override.\n */\n config?: AppConfig;\n /**\n * Layout configuration - simple API for customizing layout\n *\n * @example\n * ```typescript\n * // Preset only\n * layout={{ preset: 'admin' }}\n *\n * // Slot override\n * layout={{ header: { end: () => <MyButton /> } }}\n *\n * // Full override\n * layout={{ header: () => <CustomHeader /> }}\n * ```\n */\n layout?: LayoutConfig;\n /**\n * Child components\n *\n * Custom routing content. When provided, overrides framework routing.\n */\n children?: ReactNode;\n /**\n * Custom store configurations\n *\n * Register Zustand stores to benefit from shell loader, retry logic,\n * error handling. Critical stores block render.\n *\n * @example\n * ```typescript\n * customStores={[{\n * name: 'dndop',\n * type: 'critical',\n * store: useDndopStore,\n * }]}\n * ```\n */\n customStores?: CustomStoreConfig[];\n}","AssetsPluginConfig":"/**\n * Assets Plugin Configuration\n * @description Configuration for static asset management\n */\ninterface AssetsPluginConfig {\n /** Mapping of asset paths to asset metadata */\n mapping: Record<string, any>;\n /** SVG content of logo.svg for inline rendering with CSS variable theming */\n logoSvgContent?: string | null;\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of discovered assets */\n totalAssets: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","AttemptRecord":"/**\n * Internal structure used by RateLimiter to store attempt timestamps and block info.\n * @private\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AttemptRecord {\n /** Array of attempts with timestamps and optional identifiers */\n attempts: Array<{\n /** When the attempt was made */\n timestamp: number;\n /** Optional identifier (e.g., email, username) */\n identifier?: string;\n }>;\n /** Timestamp when the block expires, or null if not blocked */\n blockUntil: number | null;\n /** Number of consecutive times blocking occurred (for exponential backoff) */\n blockCount: number;\n}","AuditEvent":"/**\n * A single structured audit log entry.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuditEvent {\n type: AuditEventType;\n timestamp: string;\n userId?: string;\n collection?: string;\n docId?: string;\n ip?: string;\n userAgent?: string;\n metadata?: Record<string, string | number | boolean>;\n}","AuditEventType":"/**\n * Audit event types (SOC2 CC6, CC7, C1, P1-P8).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuditEventType = 'auth.login.success' | 'auth.login.failure' | 'auth.logout' | 'auth.locked' | 'auth.unlocked' | 'auth.mfa.enrolled' | 'auth.mfa.challenged' | 'auth.session.expired' | 'auth.password.reset' | 'auth.signup.consent' | 'auth.role.changed' | 'crud.create' | 'crud.read' | 'crud.update' | 'crud.delete' | 'crud.bulk' | 'pii.access' | 'pii.export' | 'pii.erase' | 'rate_limit.exceeded' | 'anomaly.detected' | 'config.changed';","AuthAPI":"/**\n * Auth API type - complete interface for useAuth hook\n *\n * This interface defines all properties available through useAuth('propertyName').\n * Properties are categorized by their behavior:\n * - **State** (reactive): Re-renders when value changes\n * - **Methods** (stable): Never re-renders, always same reference\n * - **Computed** (derived): Re-renders when dependencies change\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthAPI {\n user: AuthUser | null;\n userProfile: UserProfile | null;\n userSubscription: UserSubscription | null;\n loading: boolean;\n error: AuthError | null;\n emailVerification: {\n status: string;\n error?: string;\n };\n passwordResetPending: boolean;\n partnerError: {\n partnerId: AuthPartnerId;\n error: string;\n } | null;\n /**\n * Unified feature status - single source of truth for auth state.\n * Replaces deprecated boolean flags. See AuthState.status for detailed lifecycle.\n */\n status: FeatureStatus;\n getPartnerState: (partnerId: AuthPartnerId) => string;\n setPartnerState: (partnerId: AuthPartnerId, state: string, error?: string) => void;\n hasRole: (role: string) => Promise<boolean>;\n hasTier: (tier: string) => Promise<boolean>;\n hasFeature: (feature: string) => Promise<boolean>;\n getCustomClaims: () => Record<string, unknown>;\n getCustomClaim: (claim: string) => unknown;\n signInWithEmail: (email: string, password: string) => Promise<AuthResult | null>;\n createUserWithEmail: (email: string, password: string, metadata?: SignUpMetadata) => Promise<AuthResult | null>;\n signInWithPartner: (partnerId: AuthPartnerId, method?: string) => Promise<AuthResult | null>;\n linkWithPartner: (partnerId: AuthPartnerId, method?: string) => Promise<AuthResult | null>;\n signInWithGoogleCredential: (credential: string) => Promise<AuthResult | null>;\n signOut: () => Promise<void>;\n sendPasswordResetEmail: (email: string) => Promise<void>;\n updatePassword: (newPassword: string) => Promise<void>;\n verifyPasswordResetCode: (code: string) => Promise<string | null>;\n confirmPasswordReset: (code: string, newPassword: string) => Promise<void>;\n sendEmailVerification: () => Promise<void>;\n getEmailVerificationStatus: () => Promise<{\n status: string;\n }>;\n isEmailVerificationEnabled: () => Promise<boolean>;\n sendSignInLinkToEmail: (email: string, settings?: any) => Promise<void>;\n signInWithEmailLink: (email: string, link?: string) => Promise<AuthResult | null>;\n isSignInWithEmailLink: (link?: string) => boolean;\n getCurrentUser: () => Promise<AuthUser | null>;\n reauthenticateWithPassword: (password: string) => Promise<void>;\n reauthenticateWithProvider: (partnerId: AuthPartnerId, method?: AuthMethod) => Promise<void>;\n deleteAccount: (password?: string) => Promise<void>;\n setRememberMe: (remember: boolean) => Promise<void>;\n isAuthenticated: boolean;\n userRole: string;\n userTier: string;\n /**\n * Capability-based access control object.\n * Usage: `const can = useAuth('can'); if (can.edit('licenses')) { ... }`\n */\n can: CanAPI;\n isAvailable: boolean;\n}","AuthActions":"/**\n * Authentication actions interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthActions {\n setPartnerState: (partnerId: AuthPartnerId, state: AuthPartnerState, error?: AuthError) => void;\n getPartnerState: (partnerId: AuthPartnerId) => AuthPartnerState;\n clearAllPartnerStates: () => void;\n setAuthenticated: (user: AuthUser, subscription: UserSubscription, profile: UserProfile) => void;\n setUnauthenticated: () => void;\n setAuthLoading: (loading: boolean) => void;\n setAuthError: (error: AuthError) => void;\n clearAuthError: () => void;\n /** Set unified status - single source of truth */\n setStatus: (status: FeatureStatus) => void;\n getCustomClaim: (claim: string) => unknown;\n getCustomClaims: () => Record<string, unknown>;\n emailVerification: {\n status: EmailVerificationStatus;\n error?: string;\n };\n setPasswordResetPending: (pending: boolean) => void;\n setLoading: (loading: boolean) => void;\n setError: (error: AuthError) => void;\n clearError: () => void;\n reset: () => void;\n setAuthService: (authService: unknown) => void;\n getCustomClaimLocal: (claim: string) => unknown;\n getCustomClaimsLocal: () => Record<string, unknown>;\n setEmailVerificationStatus: (status: EmailVerificationStatus, error?: string) => void;\n setUserProfile: (profile: UserProfile) => void;\n setUserSubscription: (subscription: UserSubscription) => void;\n}","AuthConfig":"/**\n * Authentication route configuration\n *\n * Configure redirect routes for authentication and authorization failures.\n * Also configures AuthHeader UI behavior (login page, user menu, etc.).\n * All routes are optional with security-first defaults.\n *\n * @example\n * ```typescript\n * const authConfig: AuthConfig = {\n * authRoute: '/signin',\n * roleRoute: '/403',\n * tierRoute: '/pricing',\n * loginPath: '/login', // Optional: links to login page (undefined = show providers in header)\n * profilePath: '/account',\n * authMenuPaths: ['/dashboard', '/settings']\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthConfig {\n /** Route to redirect when authentication required (default: '/') */\n authRoute?: string;\n /** Route to redirect when role insufficient (default: '/404') */\n roleRoute: string;\n /** Route to redirect when tier insufficient (default: '/404') */\n tierRoute: string;\n /** Optional: Path to login page. If provided, AuthHeader links to login page. If undefined (default), shows providers in header */\n loginPath?: string;\n /** Optional: Path to password reset callback page (default: '/auth/reset-password'). Framework auto-handles the route. */\n resetPasswordPath?: string;\n /** Optional: Path to profile page (default: '/profile') */\n profilePath?: string;\n /**\n * Optional: Custom menu items for authenticated user menu dropdown.\n * Supports route-based items with paths (auto-creates Link).\n * Icons are auto-resolved from route discovery (PageMeta.icon) if not provided.\n * For items with onClick handlers, use AuthMenu customItems prop instead.\n *\n * @example\n * ```typescript\n * authMenuItems: [\n * { path: '/dashboard' }, // icon auto-resolved from route\n * { path: '/settings', label: 'Settings' }, // override label, icon from route\n * { path: '/billing', icon: 'CreditCard' } // override icon\n * ]\n * ```\n */\n authMenuItems?: Array<{\n /** Route path (creates Link automatically) */\n path: string;\n /** Optional label (falls back to navigation item label or path segment) */\n label?: string;\n /** Optional Lucide icon name (string) - overrides route discovery icon */\n icon?: string;\n }>;\n /**\n * Optional function to handle custom data deletion before account removal\n * Framework will try/catch this - failures won't block account deletion\n *\n * @example\n * ```typescript\n * deleteUserFunction: async (userId: string) => {\n * // Cancel Stripe subscriptions\n * await fetch('/api/billing/cancel', { method: 'POST' });\n *\n * // Delete Firestore user data\n * await deleteDoc(doc(db, 'users', userId));\n *\n * // Custom cleanup\n * await myCustomCleanup(userId);\n * }\n * ```\n */\n deleteUserFunction?: (userId: string) => Promise<void>;\n}","AuthContextValue":"/**\n * Authentication context value interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthContextValue {\n /** The currently authenticated user object, or null if unauthenticated */\n user: AuthUser | null;\n /** Whether the user is currently authenticated */\n authenticated: boolean;\n /** Whether an authentication operation is in progress */\n loading: boolean;\n /** Current error message, or null if no error */\n error: string | null;\n /** The user's role */\n role: UserRole;\n /** The user's subscription information, or null if unauthenticated or not yet loaded */\n subscription: SubscriptionInfo | null;\n /** Current authentication token */\n token: string | null;\n /** Token status */\n tokenStatus: TokenStatus;\n /** When the token expires */\n tokenExpiresAt: Date | null;\n /** Sign in with email and password */\n signIn: (email: string, password: string) => Promise<void>;\n /** Sign up with email and password */\n signUp: (email: string, password: string) => Promise<void>;\n /** Sign out the current user */\n signOut: () => Promise<void>;\n /** Reset password for email */\n resetPassword: (email: string) => Promise<void>;\n /** Update user profile */\n updateProfile: (updates: Partial<AuthUser>) => Promise<void>;\n /** Refresh the authentication token */\n refreshToken: () => Promise<string | null>;\n /** Get the current access token */\n getAccessToken: () => Promise<string | null>;\n /** Check if user has a specific role */\n hasRole: (role: UserRole) => boolean;\n /** Check if user has access to a feature */\n hasFeature: (featureId: string) => boolean;\n /** Check if user has access to a tier */\n hasTier: (requiredTier: string) => boolean;\n}","AuthCoreHookResult":"/**\n * Result type for the useAuthCore hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthCoreHookResult {\n user: AuthUser | null;\n authenticated: boolean;\n loading: boolean;\n error: string | null;\n signIn: (email: string, password: string) => Promise<void>;\n signUp: (email: string, password: string) => Promise<void>;\n signOut: () => Promise<void>;\n resetPassword: (email: string) => Promise<void>;\n updateProfile: (updates: Partial<AuthUser>) => Promise<void>;\n}","AuthError":"/**\n * Error type that supports Firebase errors and custom errors with code property\n * Note: DoNotDevError is avoided for account linking to preserve Firebase error codes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthError = (Error & {\n code?: string;\n}","AuthEventData":"/**\n * Authentication event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthEventData {\n userId?: string;\n authUser?: any;\n userProfile?: any;\n subscription?: any;\n token?: string;\n permissions?: string[];\n partnerId?: string;\n error?: string;\n errorCode?: string;\n isLoading?: boolean;\n timestamp: Date;\n metadata?: Record<string, any>;\n}","AuthEventKey":"/**\n * Type for authentication event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthEventKey = keyof typeof AUTH_EVENTS;","AuthEventName":"/**\n * Type for authentication event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthEventName = (typeof AUTH_EVENTS)[AuthEventKey];","AuthHardeningContext":"/**\n * Minimal auth hardening interface exposed by SecurityContext.\n * Auth adapters delegate lockout to this when security is injected,\n * ensuring a single lockout source of truth that respects user config.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthHardeningContext {\n /** @throws if identifier is currently locked out */\n checkLockout(identifier: string): void;\n /** Record a failed auth attempt; may trigger lockout */\n recordFailure(identifier: string): void;\n /** Clear failure counter on successful auth */\n recordSuccess(identifier: string): void;\n}","AuthMethod":"/**\n * Authentication method type\n * 'popup' - Opens OAuth popup window (better for dev/localhost)\n * 'redirect' - Redirects to OAuth provider (better for production)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthMethod = 'redirect' | 'popup';","AuthPartner":"/**\n * Authentication partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartner = v.InferOutput<typeof authPartnerSchema>;","AuthPartnerHookResult":"/**\n * Result type for the useAuthPartner hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthPartnerHookResult {\n /** Current authentication state from the partner */\n partnerState: AuthPartnerState;\n /** Whether a connection operation is in progress */\n isConnecting: boolean;\n /** Whether the partner is currently connected */\n isConnected: boolean;\n /** Current error message, or null if no error */\n error: Error | null;\n /** Function to connect to this partner */\n connect: (options?: {\n redirectUri?: string;\n onSuccess?: (result: AuthPartnerResult) => void;\n onError?: (error: Error) => void;\n }) => Promise<void>;\n /** Function to disconnect from this partner */\n disconnect: () => Promise<boolean>;\n}","AuthPartnerId":"/**\n * Authentication partner ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartnerId = keyof typeof AUTH_PARTNERS;","AuthPartnerResult":"/**\n * Auth partner result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthPartnerResult extends PartnerResult {\n partnerId: AuthPartnerId;\n metadata?: Record<string, any>;\n}","AuthPartnerState":"/**\n * Auth partner state type - simple string constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthPartnerState = (typeof AUTH_PARTNER_STATE)[keyof typeof AUTH_PARTNER_STATE];","AuthProvider":"/**\n * Authentication provider interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthProvider {\n /**\n * Initialize the auth provider\n */\n initialize(): Promise<void>;\n /**\n * Get the current user\n */\n getCurrentUser(): Promise<AuthUser | null>;\n /**\n * Sign in with email and password\n */\n signInWithEmailAndPassword(email: string, password: string): Promise<AuthUser>;\n /**\n * Sign up with email and password\n */\n createUserWithEmailAndPassword(email: string, password: string, metadata?: SignUpMetadata): Promise<AuthUser>;\n /**\n * Sign out the current user\n */\n signOut(): Promise<void>;\n /**\n * Reset password for email\n */\n sendPasswordResetEmail(email: string): Promise<void>;\n /**\n * Update user profile\n */\n updateUserProfile(updates: Partial<AuthUser>): Promise<void>;\n /**\n * Get the current access token\n */\n getAccessToken(): Promise<string | null>;\n /**\n * Refresh the authentication token\n */\n refreshToken(): Promise<string | null>;\n /**\n * Subscribe to auth state changes\n */\n onAuthStateChanged(callback: (user: AuthUser | null) => void): UnsubscribeFn;\n /**\n * Check if user has a specific role\n */\n hasRole(role: UserRole): Promise<boolean>;\n /**\n * Check if user has access to a feature\n */\n hasFeature(featureId: string): Promise<boolean>;\n /**\n * Check if user has access to a tier\n */\n hasTier(requiredTier: string): Promise<boolean>;\n signInWithEmail(email: string, password: string): Promise<AuthResult | null>;\n createUserWithEmail(email: string, password: string, metadata?: SignUpMetadata): Promise<AuthResult | null>;\n signInWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;\n linkWithPartner(partnerId: AuthPartnerId, method?: AuthMethod): Promise<AuthResult | null>;\n signInWithGoogleCredential(credential: string): Promise<AuthResult | null>;\n updatePassword(newPassword: string): Promise<void>;\n /**\n * Verify a password reset code from the email callback link.\n * Returns the email address associated with the code.\n * @returns email address, or null if code is invalid/expired\n */\n verifyPasswordResetCode?(code: string): Promise<string | null>;\n /**\n * Confirm a password reset with the code from the email and the new password.\n * After success, user can sign in with the new password.\n */\n confirmPasswordReset?(code: string, newPassword: string): Promise<void>;\n /**\n * Get the password reset redirect path for this provider.\n * Used to build the redirect URL in password reset emails.\n */\n getPasswordResetRedirectUrl?(): string;\n sendEmailVerification(): Promise<void>;\n sendSignInLinkToEmail(email: string, actionCodeSettings?: {\n url: string;\n handleCodeInApp: boolean;\n }): Promise<void>;\n signInWithEmailLink(email: string, emailLink?: string): Promise<AuthResult | null>;\n isSignInWithEmailLink(emailLink?: string): boolean;\n getEmailVerificationStatus(): Promise<{\n status: string;\n }>;\n isEmailVerificationEnabled(): Promise<boolean>;\n reauthenticateWithPassword(password: string): Promise<void>;\n reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;\n deleteAccount(password?: string): Promise<void>;\n /**\n * Set session persistence (remember me).\n * Provider-specific: Firebase uses browserLocal/browserSession persistence,\n * Supabase uses cookie duration, etc.\n * No-op if the provider doesn't support persistence control.\n *\n * @param remember - true for persistent session, false for session-only\n */\n setRememberMe?(remember: boolean): Promise<void>;\n /**\n * Signed-in state read synchronously from the request cookies, without the auth\n * service. Lets the server render, and the client's hydration pass, show the real\n * signed-in state before the provider has initialised.\n * Display only: never an authorisation decision (the cookie is not verified).\n * Implemented by providers that keep their session in cookies (Supabase via\n * `createBrowserClient`); absent otherwise.\n *\n * @param cookieHeader - The request's `Cookie` header (`a=1; b=2`)\n * @returns The snapshot (`user: null` = signed out), or `null` when the cookies\n * cannot tell\n */\n readSessionSnapshot?(cookieHeader: string): AuthSessionSnapshot | null;\n}","AuthProviderProps":"/**\n * Props for the AuthProvider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthProviderProps {\n /** Child components that will have access to the authentication context */\n children: ReactNode;\n}","AuthRedirectHookResult":"/**\n * Result type for the useAuthRedirect hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthRedirectHookResult {\n authenticated: boolean;\n isAdmin: boolean;\n isEmailVerified: boolean;\n hasSubscription: boolean;\n shouldRedirect: boolean;\n redirectTo?: string;\n}","AuthRedirectOperation":"/**\n * Auth partner redirect operations - DRY derived from AUTH_PARTNERS schema\n * Format: `oauth-${partnerId}` for OAuth partners, `auth-${partnerId}` for auth-only\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthRedirectOperation = `oauth-${AuthPartnerId}","AuthRedirectOptions":"/**\n * Options for redirect behavior\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthRedirectOptions {\n /** If true, only allow admin users */\n adminOnly?: boolean;\n /** If true, require email verification */\n requireEmailVerification?: boolean;\n /** If true, require subscription */\n requireSubscription?: boolean;\n /** Redirect URL if conditions not met */\n redirectTo?: string;\n}","AuthResult":"/**\n * Result of an authentication operation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthResult {\n /** The authenticated user */\n user: AuthUser;\n /** Whether the operation was successful */\n success: boolean;\n /** Whether this is a new user (for sign-up operations) */\n isNewUser?: boolean;\n /** Error message if the operation failed */\n error?: string;\n}","AuthSessionSnapshot":"/**\n * Signed-in state known from the request cookies, before the auth provider has\n * initialised (see AuthProvider.readSessionSnapshot). Display only.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ninterface AuthSessionSnapshot {\n /** The signed-in user, or `null` when signed out */\n user: AuthUser | null;\n /**\n * The session's access token while it is still valid, else absent. Server render\n * only: lets CRUD reads run as the visitor (ICrudAdapter.forAccessToken), so the\n * HTML carries the visitor's own data. The database verifies the token; the\n * framework never trusts it for anything else.\n */\n accessToken?: string;\n}","AuthState":"/**\n * Authentication state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthState {\n user: AuthUser | null;\n authenticated: boolean;\n userId: string | null;\n loading: boolean;\n error: AuthError;\n userProfile: UserProfile | null;\n userSubscription: UserSubscription | null;\n partnerStates: Record<AuthPartnerId, AuthPartnerState>;\n partnerError: {\n partnerId: AuthPartnerId;\n error: AuthError;\n } | null;\n emailVerification: {\n status: EmailVerificationStatus;\n error?: string;\n };\n /**\n * Password reset recovery mode.\n * Set by provider when PASSWORD_RECOVERY event fires (Supabase)\n * or when oobCode is detected in URL (Firebase).\n * Components use this to show the \"set new password\" UI.\n */\n passwordResetPending: boolean;\n authService: unknown;\n /**\n * Unified feature status - single source of truth for auth state.\n * Replaces deprecated boolean flags (initialized, authStateChecked).\n *\n * **Lifecycle timeline:**\n * 1. Store created → `status: 'initializing'` (show loader)\n * 2. Auth service init + first callback → `status: 'ready'` (normal operation)\n * 3. If feature disabled/unavailable → `status: 'degraded'` (protected routes redirect with error)\n * 4. If init fails → `status: 'error'` (protected routes redirect with error)\n *\n * **Guard behavior:**\n * - `degraded` + protected route → redirect to auth route with `?error=auth_unavailable`\n * - `error` + protected route → redirect to auth route with `?error=auth_error`\n * - `initializing` → show loader, don't redirect\n * - `ready` → perform normal auth checks\n *\n * @see FEATURE_STATUS for possible values\n */\n status: FeatureStatus;\n}","AuthStateStore":"/**\n * Simple auth state store interface - only state, no mechanisms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthStateStore {\n authenticated: boolean;\n userId: string | null;\n user: AuthUser | null;\n role: UserRole;\n token: {\n token: string | null;\n expiresAt: Date | null;\n status: TokenStatus;\n };\n network: {\n online: boolean;\n connectionType: NetworkConnectionType;\n lastChecked: string;\n };\n rateLimit: Record<string, RateLimitState>;\n error: string | null;\n errorCode: string | undefined;\n loading: boolean;\n initialized: boolean;\n subscription: {\n tier: string;\n isActive: boolean;\n expiresAt: Date | null;\n features: string[];\n daysRemaining: number | null;\n };\n setAuthenticated: (authenticated: boolean, userId?: string | null) => void;\n setUser: (user: AuthUser | null) => void;\n setRole: (role: UserRole) => void;\n setToken: (token: string | null, expiresAt?: Date | null) => void;\n updateTokenStatus: (status: TokenStatus) => void;\n setNetworkStatus: (online: boolean, connectionType?: NetworkConnectionType) => void;\n setError: (error: string | null, errorCode?: string) => void;\n setLoading: (loading: boolean) => void;\n setSubscription: (subscription: {\n tier: string;\n isActive: boolean;\n expiresAt: Date | null;\n features: string[];\n daysRemaining: number | null;\n }) => void;\n setInitialized: (initialized: boolean) => void;\n clearError: () => void;\n reset: () => void;\n}","AuthStatus":"/**\n * Authentication status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthStatus = 'authenticated' | 'unauthenticated' | 'loading';","AuthTokenHookResult":"/**\n * Result type for the useAuthToken hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AuthTokenHookResult {\n token: string | null;\n status: TokenStatus;\n expiresAt: Date | null;\n refreshToken: () => Promise<string | null>;\n getAccessToken: () => Promise<string | null>;\n}","AuthUser":"/**\n * Type for authenticated user data\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype AuthUser = v.InferOutput<typeof AuthUserSchema>;","BaseActions":"/**\n * Base actions for UI state management.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseActions<T> extends BaseStoreActions {\n /** Select or deselect an item */\n select: (item?: T) => void;\n /** Update active filters */\n setFilters: (filters: Record<string, any>) => void;\n /** Set the sorting configuration */\n setSort: (field: keyof T, direction: 'asc' | 'desc') => void;\n}","BaseCredentials":"/**\n * Base credentials interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseCredentials {\n expiresAt?: number;\n scope?: string[];\n}","BaseDocument":"/**\n * Basic document with ID and timestamps\n * @description All entity documents in the system should extend this interface\n */\ninterface BaseDocument {\n /** The unique identifier for the document */\n id: ID;\n /** When the document was created */\n createdAt: Timestamp;\n /** When the document was last updated */\n updatedAt: Timestamp;\n /** The ID of the user who created the document (if available) */\n createdById?: ID;\n /** The ID of the user who last updated the document (if available) */\n updatedById?: ID;\n}","BaseEntityFields":"/**\n * Base fields that all entities should have\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseEntityFields {\n /** Unique identifier for the entity */\n id: EntityField<'text'>;\n /** When the entity was created */\n createdAt: EntityField<'timestamp'>;\n /** When the entity was last updated */\n updatedAt: EntityField<'timestamp'>;\n /** Who created the entity */\n createdById: EntityField<'reference'>;\n /** Who last updated the entity */\n updatedById: EntityField<'reference'>;\n /**\n * Publication status for draft/publish/delete workflow\n * - 'draft': Document is incomplete, hidden from non-admin\n * - 'available': Document is published and visible (default)\n * - 'deleted': Soft-deleted, hidden from non-admin\n * - Consumer can extend with additional statuses (e.g., 'reserved', 'sold')\n */\n status: EntityField<'select'>;\n}","BasePartnerState":"/**\n * Base partner state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BasePartnerState {\n config: any;\n error: Error | null;\n}","BaseState":"/**\n * Base UI state for an entity.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseState<T> extends BaseStoreState {\n /** Currently selected item */\n selected?: T;\n /** Active filters */\n filters: Record<string, any>;\n /** Current sort configuration */\n sort?: {\n field: keyof T;\n direction: 'asc' | 'desc';\n };\n}","BaseStoreActions":"/**\n * Base store actions that all stores should implement\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseStoreActions {\n /** Set the store readiness state */\n setReady: (ready: boolean) => void;\n /** Set the loading state */\n setLoading: (loading: boolean) => void;\n /** Set the error state */\n setError: (error: string | null) => void;\n /** Clear the current error */\n clearError: () => void;\n /** Reset the store to initial state */\n reset: () => void;\n /**\n * Set the data resolved state (optional).\n * Only implement for stores with async data sources.\n *\n * For AuthStore: call when first onAuthStateChanged fires\n * For other stores: call when initial data load completes\n */\n setDataResolved?: (resolved: boolean) => void;\n}","BaseStoreState":"/**\n * Base store state that all stores should implement\n * Provides common properties for loading, error handling, and readiness\n *\n * **Lifecycle Timeline:**\n * 1. Store created → `isReady: false`, `isDataResolved: false`\n * 2. Service init complete → `isReady: true`, `isDataResolved: false`\n * 3. First async callback → `isReady: true`, `isDataResolved: true`\n *\n * @property isReady - Service is initialized and methods can be called\n * @property isDataResolved - First async data callback has fired (user/data resolved)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseStoreState {\n /** Whether the store is ready to be used by components */\n isReady: boolean;\n /** Whether the store is currently loading */\n isLoading: boolean;\n /** Current error message, or null if no error */\n error: string | null;\n /**\n * Whether Zustand persist middleware has finished rehydrating from storage.\n * Only present on stores created with persistOptions.\n * `false` before rehydration, `true` after. Non-persisted stores: undefined.\n */\n _hasHydrated?: boolean;\n /**\n * Whether the first async data callback has fired.\n * Optional - only needed for stores with async data sources (e.g., auth, realtime).\n *\n * For AuthStore: equivalent to `authStateChecked` (first onAuthStateChanged)\n * For other stores: set when initial data load completes\n */\n isDataResolved?: boolean;\n}","BaseUserProfile":"/**\n * Base user profile interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BaseUserProfile {\n id: string;\n name?: string;\n username?: string;\n email?: string;\n photoURL?: string;\n}","BasicUserInfo":"/**\n * Basic user information that can be shared in various contexts\n */\ninterface BasicUserInfo {\n /** The unique identifier for the user */\n id: ID;\n /** The user's display name (if available) */\n displayName?: string | null;\n /** The user's email address (if available) */\n email?: string | null;\n /** The URL of the user's profile photo (if available) */\n photoURL?: string | null;\n}","BeforeCheckoutHook":"/**\n * Hook called before Stripe checkout session creation.\n * Use for ownership checks and status validation.\n *\n * @example\n * ```typescript\n * const beforeCheckout: BeforeCheckoutHook = async (userId, options) =>\n * options.mode === 'subscription' && options.billingConfigKey !== 'pro_monthly'\n * ? { allowed: false, reason: 'Unknown plan' }\n * : { allowed: true };\n * ```\n *\n * @param userId - Authenticated user ID\n * @param options - Normalized request + 0.1.x checkout options (`mode`, `priceId`, `unitAmount`, `currency`...)\n * @param metadata - Request metadata (sanitized)\n * @returns Whether to allow checkout, optional reason (and 0.1.x dynamic-pricing overrides)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BeforeCheckoutHook = (userId: string, options: BeforeCheckoutOptions, metadata: Record<string, string>) => Promise<BeforeCheckoutResult>;","BeforeCheckoutOptions":"/**\n * Second argument of a `beforeCheckout` hook: the normalized request plus the\n * 0.1.x checkout options, so 0.1.x guards (`options.mode === 'subscription'`,\n * `options.priceId`) keep working.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype BeforeCheckoutOptions = Omit<CreateCheckoutSessionRequest, 'userId' | 'mode' | 'priceId' | 'metadata' | 'allowPromotionCodes'> & {\n /** Authenticated user ID (never the client value) */\n userId: string;\n /** Stripe mode of the session (request `mode`, else derived from the item type; StripeOrder: `payment`) */\n mode: CheckoutMode;\n /** Stripe price charged (request priceId, else the back config priceId). Undefined for dynamic pricing and StripeOrder. */\n priceId?: string;\n /** Request metadata as sent (before sanitization; 0.1.x behaviour) */\n metadata: Record<string, string>;\n /** Request value, default `true` (0.1.x behaviour) */\n allowPromotionCodes: boolean;\n}","BeforeCheckoutResult":"/**\n * Result of a beforeCheckout hook invocation. Blocks or allows checkout.\n * StripeOrder prices come from `resolveLineItems`, never from here.\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BeforeCheckoutResult {\n /** Whether checkout is allowed to proceed */\n allowed: boolean;\n /** Reason for blocking (shown in error response) */\n reason?: string;\n}","BillingAPI":"/**\n * Billing API type - complete interface for useStripeBilling hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAPI {\n /**\n * Unified feature status - single source of truth for billing state.\n * Replaces deprecated `loading` boolean flag.\n * - `initializing`: Billing is loading/initializing\n * - `ready`: Billing fully operational\n * - `degraded`: Billing unavailable (feature not installed/consent not given)\n * - `error`: Billing encountered error\n */\n status: FeatureStatus;\n error: string | null;\n /**\n * Whether a billing operation is in progress.\n * For redirect operations (checkout, portal), the hook automatically shows\n * a fullscreen overlay with operation-specific messaging.\n */\n loading: boolean;\n checkout: (options: CheckoutOptions) => Promise<StripeCheckoutResponse>;\n cancelSubscription: () => Promise<{\n success: boolean;\n endsAt: string;\n }>;\n changePlan: (newPriceId: string, billingConfigKey: string) => Promise<{\n success: boolean;\n }>;\n refreshStatus: () => Promise<void>;\n openCustomerPortal: (returnUrl?: string) => Promise<void>;\n clearError: () => void;\n isAvailable: boolean;\n}","BillingAdapter":"/** Billing adapter interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAdapter {\n createCheckoutSession(request: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;\n getProvider(): Promise<BillingProvider>;\n isAvailable(): Promise<boolean>;\n}","BillingAuthProvider":"/**\n * Auth operations the server billing code needs: read a user's custom claims\n * and write them back (subscription tier lives in the claims).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface BillingAuthProvider {\n getUser(userId: string): Promise<{\n customClaims?: Record<string, unknown>;\n }>;\n setCustomUserClaims(userId: string, claims: Record<string, unknown>): Promise<void>;\n}","BillingErrorCode":"/**\n * Billing-specific error codes for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingErrorCode = 'unknown' | 'unauthenticated' | 'invalid_request' | 'stripe_error' | 'subscription_not_found' | 'checkout_session_not_found' | 'webhook_verification_failed' | 'rate_limit_exceeded' | 'insufficient_permissions' | 'invalid_webhook_signature' | 'checkout_blocked';","BillingEvent":"/** Billing event types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEvent = {\n type: 'subscription_updated';\n data: unknown;\n}","BillingEventData":"/**\n * Billing event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingEventData {\n provider?: string;\n config?: Record<string, unknown>;\n invoice?: Record<string, unknown>;\n paymentMethod?: Record<string, unknown>;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","BillingEventKey":"/**\n * Type for billing event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEventKey = keyof typeof BILLING_EVENTS;","BillingEventName":"/**\n * Type for billing event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingEventName = (typeof BILLING_EVENTS)[BillingEventKey];","BillingProvider":"/** Billing provider types - Stripe only\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingProvider = 'stripe';","BillingProviderConfig":"/** Billing provider configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BillingProviderConfig {\n provider: BillingProvider;\n apiKey?: string;\n webhookSecret?: string;\n publishableKey?: string;\n testMode?: boolean;\n}","BillingRedirectOperation":"/**\n * Billing-specific redirect operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BillingRedirectOperation = 'stripe-checkout' | 'stripe-portal';","Breakpoint":"/**\n * Breakpoint type definition for responsive design\n *\n * Defines the standard breakpoints used throughout the framework\n * for responsive layout and component behavior.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Breakpoint = 'mobile' | 'tablet' | 'laptop' | 'desktop';","BreakpointUtils":"/**\n * Breakpoint utilities interface\n *\n * Provides computed breakpoint state and helper methods\n * for responsive design logic.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BreakpointUtils {\n /** Current active breakpoint */\n current: Breakpoint;\n /** Current window width in pixels */\n width: number;\n /** Current window height in pixels */\n height: number;\n /** Whether current viewport is mobile (0-767px) */\n isMobile: boolean;\n /** Whether current viewport is tablet (768-1023px) */\n isTablet: boolean;\n /** Whether current viewport is laptop (1024-1439px) */\n isLaptop: boolean;\n /** Whether current viewport is desktop (1440px+) */\n isDesktop: boolean;\n /** Whether current viewport is mobile OR tablet (< 1024px) */\n isMobileOrTablet: boolean;\n /** Whether current viewport is laptop OR desktop (>= 1024px) */\n isLaptopOrDesktop: boolean;\n}","BuiltInFieldType":"/**\n * Built-in field type union (same as FieldType). Used internally to distinguish\n * framework field types from custom types registered via registerFieldType().\n */\ntype BuiltInFieldType = (typeof FIELD_TYPES)[number];","BulkAcrossBatch":"/**\n * One collection's worth of operations inside a {@link bulkAcross} call.\n *\n * Inserts may include a caller-provided `id` for cross-collection pre-minting:\n * mint the ID client-side, use it in both collections, and pass `dependsOn` to\n * ensure write order.\n *\n * @template T - Entity type for this batch's collection.\n *\n * @example\n * const customerId = generateUUID();\n * await bulkAcross([\n * {\n * collection: 'customers',\n * inserts: [{ id: customerId, ...customerData }],\n * schemas: { create: customerCreateSchema },\n * },\n * {\n * collection: 'inquiries',\n * inserts: [{ customerId, ...inquiryData }],\n * schemas: { create: inquiryCreateSchema },\n * dependsOn: ['customers'],\n * },\n * ]);\n *\n * @version 0.1.0\n * @since 0.3.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkAcrossBatch<T extends Record<string, unknown> = Record<string, unknown>> {\n /** Target collection name. */\n collection: string;\n /** Rows to insert. May include a caller-provided `id` for pre-minting. */\n inserts?: Array<CrudCreateInput<T> & {\n id?: string;\n }>;\n /** Rows to update (partial patches). */\n updates?: Array<{\n id: string;\n patch: Partial<T>;\n }>;\n /** Document IDs to delete. */\n deletes?: string[];\n /** Schemas for insert validation + PII resolution. */\n schemas: {\n create?: dndevSchema<T>;\n draft?: dndevSchema<T>;\n update?: dndevSchema<T>;\n };\n /**\n * Collections that must be written first.\n * Batches with no `dependsOn` run in parallel with other dependency-free batches.\n */\n dependsOn?: string[];\n}","BulkAcrossResult":"/**\n * Result of a {@link bulkAcross} call. Per-collection results keyed by collection name.\n *\n * @version 0.1.0\n * @since 0.3.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkAcrossResult {\n /** Per-collection {@link BulkResult}, keyed by collection name. */\n results: Record<string, BulkResult>;\n}","BulkOperations":"/**\n * Input shape for a bulk CRUD operation. All three fields are optional — callers\n * include only the buckets they need. Items are processed in input order per\n * bucket and returned in the same order in {@link BulkResult}.\n *\n * Semantics (enforced by the service, not the adapter):\n * - Atomic: all ops succeed or none do.\n * - Collision rejection: an id appearing in both `updates` and `deletes`, or both\n * `inserts` and `updates`, fails up-front with {@link BulkCollisionError}.\n * - Empty bulk (`{}`) is a no-op that returns a zeroed {@link BulkResult}\n * without hitting the adapter.\n *\n * @template T - Entity type for the collection. Must be an object so PII\n * encryption, cache merging and adapter mapping can treat each row as a\n * `Record<string, unknown>`.\n *\n * @example\n * const ops: BulkOperations<Event> = {\n * inserts: [{ title: 'A' }, { title: 'B' }],\n * updates: [{ id: 'e1', patch: { title: 'renamed' } }],\n * deletes: ['e2', 'e3'],\n * };\n *\n * @version 0.1.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkOperations<T extends Record<string, unknown>> {\n /** New rows to insert. IDs are server-assigned and returned in {@link BulkResult.insertedIds}. */\n inserts?: CrudCreateInput<T>[];\n /** Partial updates keyed by id. `patch` is a shallow merge on top of the stored row. */\n updates?: Array<{\n id: string;\n patch: Partial<T>;\n }>;\n /** IDs to delete. */\n deletes?: string[];\n}","BulkResult":"/**\n * Result of a bulk CRUD operation. Each id list preserves the input order of the\n * corresponding bucket in {@link BulkOperations}.\n *\n * @example\n * const r: BulkResult = await adapter.bulk('events', {\n * inserts: [{ title: 'A' }],\n * deletes: ['x'],\n * });\n * r.insertedIds; // ['evt_123']\n * r.deletedIds; // ['x']\n *\n * @version 0.1.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface BulkResult {\n /** Server-assigned IDs for `inserts`, in input order. */\n insertedIds: string[];\n /** IDs that were updated, in input order. */\n updatedIds: string[];\n /** IDs that were deleted, in input order. */\n deletedIds: string[];\n}","BusinessEntity":"/**\n * Definition of a business entity without base fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BusinessEntity<out F extends Record<string, EntityField> = Record<string, EntityField>> {\n /** Name of the entity */\n name: string;\n /** Firestore collection name */\n collection: string;\n /**\n * i18n namespace for translations (defaults to `entity-${name.toLowerCase()}`)\n * @example \"entity-car\", \"entity-product\"\n * @default `entity-${name.toLowerCase()}`\n */\n namespace?: string;\n /**\n * Multi-tenancy scope configuration (optional)\n * When set, the scope field is auto-added and CRUD operations auto-inject/filter by scope\n *\n * @example\n * ```typescript\n * scope: { field: 'companyId', provider: 'company' }\n * ```\n */\n scope?: ScopeConfig;\n /**\n * Stakeholder ownership configuration (optional).\n * When set, drives Firestore rule condition (read/update), list/listCard query constraints,\n * and visibility: 'owner' field masking. Use for marketplace-style entities (e.g. schedules:\n * public when available, private to partner/customer when booked).\n *\n * @example\n * ```typescript\n * ownership: {\n * ownerFields: ['providerId', 'customerId'],\n * publicCondition: [{ field: 'status', op: '==', value: 'available' }],\n * }\n * ```\n */\n ownership?: EntityOwnershipConfig;\n /** Field definitions - name and label are required */\n fields: F;\n /** Form configuration for advanced forms */\n form?: FormConfig;\n /**\n * Fields to include in admin list responses (optional).\n * Used by EntityList for optimized admin table queries.\n * If not specified, all visible fields are returned.\n * 'id' is always included automatically.\n *\n * @example\n * ```typescript\n * listFields: ['id', 'make', 'model', 'status', 'createdAt']\n * ```\n */\n listFields?: string[];\n /**\n * Fields to include in public card list responses.\n * Accepts a flat array (auto-layout) or a slot-based `ListCardLayout` object.\n *\n * Each field value is formatted via `formatValue()` using its registered display formatter.\n * For `'number'` fields, use `unit` and `suffix` field options for rich display — no custom\n * type needed:\n * - `unit: 'm²'` → \"20m²\" (appended directly, no space)\n * - `suffix: 'fields.rent_suffix'` → \"700€ charges comprises\" (i18n key, space-separated)\n *\n * Use `titleSeparator` in `ListCardLayout` to control how multiple title fields are joined\n * (default `' '`).\n *\n * @example\n * ```typescript\n * // Flat — auto-slots first field as title, rest as content\n * listCardFields: ['images', 'make', 'price', 'year']\n *\n * // Slot-based — explicit card layout with separator\n * listCardFields: {\n * titleSeparator: ' - ',\n * title: ['district_code', 'size'], // e.g. \"Paris 20e arr. - 20m²\"\n * subtitle: ['rent'], // e.g. \"700€ charges comprises\"\n * content: ['pictures', 'nearby_stations'],\n * }\n * ```\n */\n listCardFields?: string[] | ListCardLayout;\n /**\n * Entity-level access control configuration.\n * Defines minimum role required for each CRUD operation.\n * Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n *\n * Defaults (via defineEntity):\n * - read: 'guest' (public read, field visibility handles sensitive data)\n * - create/update/delete: 'admin'\n *\n * @example\n * ```typescript\n * // Public inquiry form\n * access: { create: 'guest', read: 'admin' }\n *\n * // Members-only content\n * access: { read: 'user' }\n * ```\n */\n access?: EntityAccessConfig;\n /**\n * Unique key constraints for deduplication\n * Checked during create/update operations\n *\n * - Single field: `[{ fields: ['email'] }]`\n * - Composite: `[{ fields: ['vin', 'make'] }]`\n * - Multiple keys (OR): `[{ fields: ['email'] }, { fields: ['phone'] }]`\n *\n * @example\n * ```typescript\n * // Customer: email OR phone identifies (findOrCreate behavior)\n * uniqueKeys: [\n * { fields: ['email'], findOrCreate: true },\n * { fields: ['phone'], findOrCreate: true }\n * ]\n *\n * // Car: VIN is unique, skip for drafts\n * uniqueKeys: [{ fields: ['vin'], skipForDrafts: true }]\n * ```\n */\n uniqueKeys?: UniqueKeyDefinition[];\n /**\n * SOC2 security configuration for this entity (optional — zero-config MVP path).\n * When a `SecurityContext` is provided to `CrudService`, these settings control\n * PII encryption, audit logging, rate limits, MFA enforcement, and retention.\n *\n * @example\n * ```typescript\n * security: {\n * piiFields: ['email', 'phone'],\n * requireMfa: 'admin',\n * retention: { days: 365 },\n * }\n * ```\n */\n security?: SecurityEntityConfig;\n /**\n * Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.\n * If omitted, all text-like visible fields are searched automatically.\n *\n * @example\n * ```typescript\n * search: { fields: ['name', 'description', 'sku'] }\n * ```\n */\n search?: {\n fields?: string[];\n };\n /**\n * Default client-side sort for list hooks.\n * Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.\n * Pass `clientSort: null` in hook options to disable.\n *\n * @example\n * ```typescript\n * defaultSort: { field: 'createdAt', direction: 'desc' }\n * ```\n */\n defaultSort?: {\n field: string;\n direction?: 'asc' | 'desc';\n };\n}","CachedError":"/**\n * Information about a cached error\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CachedError {\n /** The error object */\n error: Error;\n /** Timestamp when the error occurred */\n timestamp: number;\n}","CanAPI":"/**\n * Capability-based access control API\n *\n * Provides granular permission checks based on resources and custom capabilities.\n * Permissions are derived from userProfile.permissions array (format: \"resource:action\")\n * and user role (admin bypasses all checks).\n *\n * @example\n * ```typescript\n * const can = useAuth('can');\n * if (can.view('dashboard')) { ... }\n * if (can.edit('licenses')) { ... }\n * if (can.perform('approve-budget', { amount: 5000 })) { ... }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.3\n * @author AMBROISE PARK Consulting\n */\ninterface CanAPI {\n /** Check if user can navigate to a route (replaces canAccess) */\n navigate: (config: PageAuth | false) => boolean;\n /** Check if user can view a resource */\n view: (resource: string) => boolean;\n /** Check if user can edit a resource */\n edit: (resource: string) => boolean;\n /** Check if user can delete a resource */\n delete: (resource: string) => boolean;\n /** Check if user can create a resource */\n create: (resource: string) => boolean;\n /** Check custom capability with optional context */\n perform: (action: string, context?: Record<string, any>) => boolean;\n /** Check if user has specific permission string */\n has: (permission: string) => boolean;\n}","CanvasBlock":"/**\n * Envelope for a single canvas block emitted by the agent.\n *\n * `payload` is intentionally `unknown` at the envelope level — it is\n * validated against the registered widget's payload schema inside\n * `validateBlock`. Do not trust `payload` without that check.\n */\ninterface CanvasBlock {\n readonly id: string;\n readonly kind: string;\n readonly lifetime: CanvasLifetime;\n readonly metadata?: CanvasWidgetMetadata;\n readonly payload: unknown;\n}","CanvasCallerAccess":"/**\n * Caller access tier passed to `validateBlock` for surface gating.\n *\n * Mirrors the gontrand access model. `kid` and `null` fail closed for any\n * non-`meta` surface at the canvas boundary.\n */\ntype CanvasCallerAccess = 'admin' | 'member' | 'kid' | null;","CanvasEvent":"/**\n * Envelope for a user interaction event emitted back to the agent.\n *\n * `payload` is validated against the widget's per-action schema inside\n * `validateEvent`.\n */\ninterface CanvasEvent {\n readonly widgetId: string;\n readonly action: string;\n readonly payload: unknown;\n}","CanvasLifetime":"/**\n * Canvas block lifetime. Kept as a type alias here — the runtime schema\n * `CanvasLifetimeSchema` lives in `@donotdev/schemas`.\n *\n * - `ephemeral` — vanishes with the current turn (default).\n * - `session` — pinned to the current chat thread.\n * - `persistent` — lives on the PWA dashboard until manually removed.\n */\ntype CanvasLifetime = 'ephemeral' | 'session' | 'persistent';","CanvasSurface":"/**\n * Which surface a widget is allowed to render on.\n *\n * - `household` — any authenticated member.\n * - `private` — member-scoped (mail, 2nd-brain, homework).\n * - `meta` — framing widgets (TextBlock, Composite, ProgressCanvas, Confirmation).\n */\ntype CanvasSurface = 'household' | 'private' | 'meta';","CanvasWidgetMetadata":"/**\n * Optional display hints attached to a canvas block.\n */\ninterface CanvasWidgetMetadata {\n readonly title?: string;\n readonly pinnable?: boolean;\n readonly preferredHeight?: number;\n}","CanvasWidgetProps":"/**\n * Props every widget component receives from `CanvasHost`. The React\n * component shape itself lives in `@donotdev/canvas` (UI package).\n */\ninterface CanvasWidgetProps {\n readonly payload: unknown;\n readonly emit: (action: string, payload: unknown) => void;\n}","CheckGitHubAccessRequest":"/**\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckGitHubAccessRequest = v.InferOutput<typeof checkGitHubAccessSchema>;","CheckoutAddress":"/**\n * Postal address as reported by Stripe.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutAddress {\n line1: string | null;\n line2: string | null;\n postalCode: string | null;\n city: string | null;\n state: string | null;\n /** ISO 3166-1 alpha-2 */\n country: string | null;\n}","CheckoutLineItemInput":"/**\n * One requested checkout line (client input).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutLineItemInput = v.InferOutput<typeof CheckoutLineItemInputSchema>;","CheckoutMode":"/** Unified checkout mode type used everywhere\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutMode = 'payment' | 'subscription';","CheckoutOptions":"/**\n * Client checkout options (useStripeBilling `checkout`).\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutOptions {\n /** Key in the app's StripeBackConfig. 0.1.x callers may pass it as `metadata.billingConfigKey`. */\n billingConfigKey?: string;\n /** Requested lines. Defaults to `[{ productId: billingConfigKey, quantity: 1 }]` (single product / subscription). */\n lineItems?: CheckoutLineItemInput[];\n successUrl?: string;\n cancelUrl?: string;\n metadata?: Record<string, string>;\n /** Single-price items: show the promotion code field (default true). StripeOrder: set in the back config. */\n allowPromotionCodes?: boolean;\n /** Stripe price ID (single-price items). Must match the back config priceId when it has one; defaults to it. */\n priceId?: string;\n /** Currency for dynamic pricing (default 'eur'). */\n currency?: string;\n /** Stripe mode for single-price items. Defaults to the back config item type. */\n mode?: CheckoutMode;\n}","CheckoutSessionMetadata":"/**\n * Checkout session metadata type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CheckoutSessionMetadata = v.InferOutput<typeof CheckoutSessionMetadataSchema>;","CheckoutSessionParams":"/**\n * 0.1.x single-price session params, sent to a {@link StripeCheckoutProvider}.\n *\n * @version 0.2.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionParams {\n priceId?: string;\n /** Currency code, defaults to 'eur' */\n currency?: string;\n customerEmail?: string;\n metadata: Record<string, string>;\n allowPromotionCodes: boolean;\n successUrl: string;\n cancelUrl: string;\n mode?: 'payment' | 'subscription';\n}","CheckoutSessionResult":"/**\n * Checkout Session created by a provider.\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionResult {\n id: string;\n url: string | null;\n}","CheckoutSessionSnapshot":"/**\n * Provider-neutral snapshot of a completed/expired Stripe Checkout Session,\n * passed to order hooks.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface CheckoutSessionSnapshot {\n id: string;\n /** 'paid' | 'unpaid' | 'no_payment_required' */\n paymentStatus: string;\n currency: string | null;\n /** Amounts in the smallest currency unit */\n amountSubtotal: number | null;\n amountTax: number | null;\n amountShipping: number | null;\n amountDiscount: number | null;\n amountTotal: number | null;\n customerId: string | null;\n customer: {\n email: string | null;\n name: string | null;\n phone: string | null;\n /** Business name, when collected */\n businessName: string | null;\n address: CheckoutAddress | null;\n taxIds: Array<{\n type: string;\n value: string | null;\n }>;\n /** 'none' | 'exempt' | 'reverse' */\n taxExempt: string | null;\n } | null;\n shipping: {\n name: string;\n address: CheckoutAddress;\n } | null;\n invoiceId: string | null;\n paymentIntentId: string | null;\n metadata: Record<string, string>;\n}","CollectionSubscriptionCallback":"/** Callback for collection subscriptions */\ntype CollectionSubscriptionCallback<T> = (data: T[], error?: Error) => void;","ColumnDef":"/**\n * Column definition for list views\n * @template T - The item type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ColumnDef<T extends FieldValues> {\n /** Key in the data object */\n key: keyof T;\n /** Display label */\n label: string;\n /** Optional custom render function */\n render?: (value: T[keyof T], row: T) => ReactNode;\n}","CommonSubscriptionFeatures":"/**\n * Common subscription features that apps can reference\n * Apps can use these or define their own custom features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CommonSubscriptionFeatures = 'basic-usage' | 'limited-storage' | 'standard-support' | 'cloud-sync' | 'advanced-analytics' | 'priority-support' | 'custom-branding' | 'team-collaboration' | 'ai-assistant' | 'custom-models' | 'unlimited-generations' | 'advanced-integrations';","CommonTranslations":"/**\n * Common translation interface for shared UI elements\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CommonTranslations {\n /** Action button translations */\n actions: {\n create: string;\n update: string;\n delete: string;\n cancel: string;\n confirm: string;\n };\n /** Error message translations */\n errors: Record<string, string>;\n /** Common label translations */\n labels: Record<string, string>;\n}","ConditionBuilderLike":"/**\n * Structural interface satisfied by ConditionBuilder (defined in @donotdev/utils).\n * Allows types to reference builders without depending on the runtime class.\n */\ninterface ConditionBuilderLike {\n readonly expression: ConditionExpression;\n}","ConditionExpression":"/** A condition expression — the serializable data model for conditions */\ntype ConditionExpression = ConditionNode | ConditionGroup;","ConditionGroup":"/** Logical group of conditions */\ninterface ConditionGroup {\n readonly type: 'group';\n readonly logic: 'and' | 'or';\n readonly conditions: ReadonlyArray<ConditionExpression>;\n}","ConditionInput":"/** Accepted condition input — either a raw expression or a ConditionBuilder */\ntype ConditionInput = ConditionExpression | ConditionBuilderLike;","ConditionNode":"/** A single condition: field + operator + value */\ninterface ConditionNode {\n readonly type: 'condition';\n readonly field: string;\n readonly operator: ConditionOperator;\n readonly value?: unknown;\n}","ConditionOperator":"/** Supported comparison operators */\ntype ConditionOperator = 'equals' | 'notEquals' | 'in' | 'notIn' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'exists' | 'notExists' | 'contains';","ConditionResult":"/** Result of evaluating all conditions for a field */\ninterface ConditionResult {\n /** Whether the field should be visible (default: true) */\n visible: boolean;\n /** Whether the field should be disabled (default: false) */\n disabled: boolean;\n /** Whether the field is required (default: false, overrides static validation.required) */\n required: boolean;\n /** Whether the field is readonly (default: false) */\n readonly: boolean;\n}","ConditionalBehavior":"/** Conditions that can be attached to a field */\ninterface ConditionalBehavior {\n /** Condition for field visibility — if false, field is hidden and excluded from validation */\n visible?: ConditionInput;\n /** Condition for field disabled state */\n disabled?: ConditionInput;\n /** Condition for dynamic required — evaluated at runtime */\n required?: ConditionInput;\n /** Condition for readonly state */\n readonly?: ConditionInput;\n}","ConfidenceLevel":"/**\n * Confidence level type derived from CONFIDENCE_LEVELS constant\n */\ntype ConfidenceLevel = (typeof CONFIDENCE_LEVELS)[keyof typeof CONFIDENCE_LEVELS];","ConnectOptions":"/**\n * Options for `useOAuth('connect')`.\n * Allows scope customization and extra auth URL parameters.\n *\n * @example\n * ```typescript\n * const connect = useOAuth('connect');\n * // Simple (defaults):\n * await connect('github');\n * // With scope override:\n * await connect('github', { purpose: 'api-access', scopes: ['repo', 'user:email'] });\n * ```\n *\n * @version 0.1.0\n * @since 0.1.0\n * @author AMBROISE PARK Consulting\n */\ninterface ConnectOptions {\n /** OAuth purpose — defaults to 'api-access' */\n purpose?: OAuthPurpose;\n /** Override default scopes from schema. Only these scopes will be requested. */\n scopes?: string[];\n /** Extra query parameters to append to the auth URL */\n additionalParams?: Record<string, string>;\n}","ConsentAPI":"/**\n * Consent API - All available properties and methods from consent store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentAPI extends ConsentState, ConsentActions {\n /** Whether banner should be shown */\n showBanner: boolean;\n}","ConsentActions":"/**\n * Consent actions interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentActions {\n /** Accept all optional categories */\n acceptAll: () => void;\n /** Decline all optional categories */\n declineAll: () => void;\n /** Update specific category */\n updateCategory: (category: keyof DoNotDevCookieCategories, value: boolean) => void;\n /** Check if category is granted */\n hasCategory: (category: keyof DoNotDevCookieCategories) => boolean;\n /** Reset consent (for testing) */\n reset: () => void;\n /** Save consent to cookie */\n saveConsent: () => void;\n /** Show cookie banner (for cookie settings link) */\n showCookieBanner: () => void;\n}","ConsentCategory":"/**\n * Consent category type - auto-derived from constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ConsentCategory = (typeof CONSENT_CATEGORY)[keyof typeof CONSENT_CATEGORY];","ConsentState":"/**\n * Consent state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConsentState {\n /** Whether user has made a consent choice */\n hasConsented: boolean;\n /** Individual category permissions - only includes categories that are actually required */\n categories: AppCookieCategories;\n /** When consent was last updated */\n timestamp: string | null;\n /** Consent version for future migrations */\n version: string;\n}","Context":"/**\n * Context type derived from CONTEXTS constant\n */\ntype Context = (typeof CONTEXTS)[keyof typeof CONTEXTS];","CookieOptions":"/**\n * Cookie options for setting cookies\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CookieOptions {\n /** Cookie expiration in days (default: 365) */\n expires?: number;\n /** Cookie path (default: '/') */\n path?: string;\n /** Cookie domain */\n domain?: string;\n /** Secure flag (default: true) */\n secure?: boolean;\n /** SameSite attribute (default: 'strict') */\n sameSite?: 'strict' | 'lax' | 'none';\n /** Cookie priority (Chrome 99+) */\n priority?: 'low' | 'medium' | 'high';\n /** Partitioned flag (Chrome 114+) */\n partitioned?: boolean;\n}","CreateCheckoutSessionRequest":"/**\n * Create checkout session request type (normalized: `billingConfigKey` and `lineItems` set)\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionRequest = v.InferOutput<typeof CreateCheckoutSessionRequestSchema>;","CreateCheckoutSessionRequestInput":"/**\n * Create checkout session request as sent by a client (before normalization)\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionRequestInput = v.InferInput<typeof CreateCheckoutSessionRequestSchema>;","CreateCheckoutSessionResponse":"/**\n * Create checkout session response type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateCheckoutSessionResponse = v.InferOutput<typeof CreateCheckoutSessionResponseSchema>;","CreateEntityData":"/**\n * Data required for creating an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CreateEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The entity data to create */\n payload: T;\n /** Optional idempotency key for preventing duplicate operations */\n idempotencyKey?: string;\n}","CreateEntityRequest":"/**\n * Create entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CreateEntityRequest = v.InferOutput<typeof createEntitySchema>;","CreateEntityResponse":"/**\n * Create entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CreateEntityResponse {\n success: boolean;\n id: string;\n data: Record<string, any>;\n}","CrudAPI":"/**\n * CRUD API type - complete interface for useCrud hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CrudAPI<T = unknown> {\n /**\n * Unified feature status - single source of truth for CRUD state.\n * - `initializing`: CRUD is loading/initializing\n * - `ready`: CRUD fully operational\n * - `degraded`: CRUD unavailable (feature not installed/consent not given)\n * - `error`: CRUD encountered error\n */\n status: FeatureStatus;\n /** Loading state for async operations */\n loading: boolean;\n /** Last error encountered */\n error: Error | null;\n /** Fetch single document by ID */\n get: (id: string) => Promise<T | null>;\n /** Set/replace document by ID */\n set: (id: string, data: T, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Partial update document by ID */\n update: (id: string, data: Partial<T>, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Delete document by ID */\n delete: (id: string, options?: {\n showSuccessToast?: boolean;\n }) => Promise<void>;\n /** Add new document (auto-generated ID) */\n add: (data: CrudCreateInput<T>, options?: {\n showSuccessToast?: boolean;\n }) => Promise<string>;\n /** Query collection with filters */\n query: (options: QueryOptions) => Promise<T[]>;\n /** Subscribe to document changes */\n subscribe: (id: string, callback: (data: T | null, error?: Error) => void) => () => void;\n /** Subscribe to collection changes */\n subscribeToCollection: (options: QueryOptions, callback: (data: T[], error?: Error) => void) => () => void;\n /** Invalidate cache for this collection (TanStack Query) */\n invalidate: () => Promise<void>;\n /** Whether CRUD is available and operational */\n isAvailable: boolean;\n /**\n * Cross-collection atomic bulk write. One optimistic pass, one toast,\n * coordinated rollback. Batches with `dependsOn` run after their\n * dependencies; independent batches run in parallel.\n */\n bulkAcross?: (batches: BulkAcrossBatch[], options?: {\n showSuccessToast?: boolean;\n }) => Promise<BulkAcrossResult>;\n}","CrudCardProps":"/**\n * Props for CrudCard — presentational card built from entity + item + field slots.\n * Not route-aware: parent (e.g. EntityCardList) provides detailHref or onClick.\n * For a11y/SEO prefer detailHref so the card is wrapped in a Link.\n */\ninterface CrudCardProps {\n /** The list item (must have id) */\n item: EntityRecord & {\n id: string;\n };\n /** The entity definition (for entity.fields and formatting) */\n entity: AnyEntity;\n /**\n * Called when card is clicked (e.g. open sheet instead of navigating).\n * Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.\n */\n onClick?: (id: string) => void;\n /** Field names for card title (values joined with space) */\n titleFields?: string[];\n /** Field names for subtitle */\n subtitleFields?: string[];\n /** Field names for content body (label + value rows) */\n contentFields?: string[];\n /** Field names for footer */\n footerFields?: string[];\n /** When true, show delete button with confirm dialog */\n showDelete?: boolean;\n /** Optional actions slot (e.g. favorites heart) rendered in card corner */\n renderActions?: ReactNode;\n /** Optional overlay rendered over the full image area (position absolute, centered, pointer-events none) */\n renderOverlay?: ReactNode;\n /** Optional className for the card wrapper */\n className?: string;\n}","CrudConfig":"/**\n * CRUD entity configuration for auto-generation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CrudConfig {\n /** Entity collection names to generate CRUD for */\n entities: string[];\n /** Override defaults for all CRUD functions */\n defaults?: Partial<FunctionMeta>;\n}","CrudCreateInput":"/**\n * Payload for create flows (`add`, bulk `inserts`) before the document has a\n * stable `id` (server- or client-generated). Matches runtime: optimistic add\n * mints a temp id; the create schema validates this shape.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype CrudCreateInput<T> = T extends Record<string, unknown> ? Omit<T, 'id'> : Record<string, unknown>;","CrudDocQuery":"/**\n * Return shape of the CRUD single-document query option builder\n * (`CrudService.getDocQueryOptions` / `getDocQueryOptionsImpl`).\n *\n * TanStack-compatible descriptor for `useQuery()`. See `CrudListQuery` for\n * the rationale behind promoting this shape into core types.\n *\n * @template T - The document entity type\n */\ninterface CrudDocQuery<T> {\n readonly queryKey: readonly ['crud', string, 'get', string];\n /**\n * Receives TanStack's query context; `client` (the request's QueryClient on the\n * server) selects a request-scoped adapter when one is bound.\n */\n readonly queryFn: (context: {\n client: object;\n }) => Promise<T | null>;\n readonly staleTime: number;\n}","CrudListQuery":"/**\n * Return shape of the CRUD list-query option builder\n * (`CrudService.getListQueryOptions` / `getListQueryOptionsImpl`).\n *\n * This is the TanStack-compatible descriptor handed to `useQuery()`. Lifted\n * into `@donotdev/core` so the CRUD facade and its impl can both annotate\n * their return types against a single source — the inferred-only shape\n * caused circular type inference (TS7023) after the 1949-LOC CrudService\n * split.\n *\n * **Invariant:** `queryKey[3]` is `JSON.stringify(queryOptions)` — list and\n * listCard views share the same key, yielding one network read.\n *\n * @template T - The entity type in list items\n */\ninterface CrudListQuery<T> {\n readonly queryKey: readonly ['crud', string, 'query', string];\n /**\n * Receives TanStack's query context; `client` (the request's QueryClient on the\n * server) selects a request-scoped adapter when one is bound.\n */\n readonly queryFn: (context: {\n client: object;\n }) => Promise<PaginatedQueryResult<T>>;\n readonly staleTime: number;\n}","CrudOperationOptions":"/** Options for CRUD operations */\ninterface CrudOperationOptions {\n /** AbortSignal to cancel the operation */\n signal?: AbortSignal;\n}","CrudOperator":"/** Union of operator string literals. Consumer apps may use e.g. operator: 'in' without importing CRUD_OPERATORS. */\ntype CrudOperator = (typeof CRUD_OPERATORS)[keyof typeof CRUD_OPERATORS];","CustomClaims":"/**\n * Type for Firebase Auth custom claims\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CustomClaims = v.InferOutput<typeof CustomClaimsSchema>;","CustomFieldOptionsMap":"interface CustomFieldOptionsMap {\n * 'custom-address': { extractZipCode?: boolean };\n * 'repairOperations': { maxItems?: number };\n * }","CustomStoreConfig":"/**\n * Custom store configuration for app-specific stores\n *\n * Allows apps to register custom Zustand stores with the framework's\n * store initialization system. Custom stores benefit from:\n * - Shell loader integration (critical stores block render)\n * - Retry logic and error handling\n * - Unified initialization flow\n *\n * @example\n * ```typescript\n * const customStores: CustomStoreConfig[] = [{\n * name: 'dndop',\n * type: 'critical',\n * store: useDndopStore,\n * }];\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CustomStoreConfig {\n /** Store name for logging and debugging */\n name: string;\n /**\n * Store initialization priority\n * - 'critical': Blocks render until ready, shell loader stays visible\n * - 'regular': Initializes in background after critical stores\n */\n type: 'critical' | 'regular';\n /**\n * Zustand store reference (hook)\n * Can be called as a hook with a selector: `store((state) => state.isReady)`\n * Also has a .getState() method for direct state access\n */\n store: {\n (selector: (state: any) => any): any;\n getState: () => {\n initialize?: () => Promise<boolean | void>;\n [key: string]: any;\n };\n subscribe: (listener: () => void) => () => void;\n };\n}","DateValue":"/**\n * Represents a date value in various formats accepted by Firebase.\n * Can be a JavaScript Date, a Firestore Timestamp, or an ISO 8601 string.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DateValue = Date | FirestoreTimestamp | string;","DeleteEntityRequest":"/**\n * Delete entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DeleteEntityRequest = v.InferOutput<typeof deleteEntitySchema>;","DeleteEntityResponse":"/**\n * Delete entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DeleteEntityResponse {\n success: boolean;\n id: string;\n}","Density":"/**\n * Density type - auto-derived from constants\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Density = (typeof DENSITY)[keyof typeof DENSITY];","DnDevOverride":"/**\n * Layout override function - lazy component renderer\n *\n * Consumers use this to override layout zones/slots.\n * Function ensures components load lazily, not in provider tree.\n * Return `null` to explicitly hide the slot.\n */\ntype DnDevOverride = () => ReactNode | null;","DnDevWrapper":"/**\n * Main content wrapper component\n *\n * Wraps the page content (`children` / `<Outlet />`) inside `<main>`.\n * Use to add custom chrome around page content without modifying the framework layout:\n * split panes, floating panels, contextual sidebars, terminal docking, etc.\n *\n * Receives page content as `children`. Breadcrumbs, debug tools, and footer\n * remain outside the wrapper (framework-managed).\n *\n * Works identically with Vite (`<Outlet />`) and Next.js (`{children}`).\n *\n * @example\n * ```tsx\n * // Vite — split pane with terminal\n * <ViteAppProviders\n * layout={{\n * wrapper: ({ children }) => (\n * <SplitLayout terminal={<TerminalPanel />}>\n * {children}\n * </SplitLayout>\n * ),\n * }}\n * />\n *\n * // Next.js — admin panel with contextual sidebar\n * <NextJsAppProviders\n * layout={{\n * wrapper: ({ children }) => (\n * <AdminPanel sidebar={<ContextNav />}>{children}</AdminPanel>\n * ),\n * }}\n * />\n * ```\n */\ntype DnDevWrapper = (props: {\n children: ReactNode;\n}","DndevFrameworkConfig":"/**\n * Complete DoNotDev framework configuration structure\n * @description Single source of truth for all framework configuration\n *\n * @remarks\n * All discovery plugins add their data to this unified config.\n * Available at runtime via globalThis._DNDEV_CONFIG_ or window._DNDEV_CONFIG_\n */\ninterface DndevFrameworkConfig {\n /** Framework platform (Vite or Next.js) */\n platform: Platform;\n /** Current environment mode */\n mode: EnvironmentMode;\n /** Framework version */\n version: string;\n /** Execution context */\n context: Context;\n /** Unix timestamp of config generation */\n timestamp: number;\n /** i18n plugin configuration (optional) */\n i18n?: I18nPluginConfig;\n /** Routes plugin configuration (optional) */\n routes?: RoutesPluginConfig;\n /** Themes plugin configuration (optional) */\n themes?: ThemesPluginConfig;\n /** Assets plugin configuration (optional) */\n assets?: AssetsPluginConfig;\n /** PWA plugin configuration (optional) */\n pwa?: PWAPluginConfig;\n /** Features plugin configuration (optional) */\n features?: FeaturesPluginConfig;\n /** Environment variables (VITE_* variables from .env files) */\n env?: Record<string, string>;\n}","DndevProviders":"/**\n * All pluggable providers for the DoNotDev framework.\n *\n * - **crud** (required): CRUD adapter. Required for `useCrud` and entity operations.\n * - **auth** (optional): Client auth. Omit if using external auth.\n * - **storage** (optional): File/image storage. Omit if no uploads.\n * - **serverAuth** (optional): Server-side token verification.\n * - **callable** (optional): Server function invocation (e.g. Supabase Edge Functions).\n *\n * @example Firebase\n * ```typescript\n * configureProviders({\n * crud: new FirestoreAdapter(),\n * auth: new FirebaseAuth(),\n * storage: new FirebaseStorageAdapter(),\n * });\n * ```\n *\n * @example Supabase\n * ```typescript\n * configureProviders({\n * crud: new SupabaseCrudAdapter(supabase),\n * auth: new SupabaseAuth(supabase),\n * storage: new SupabaseStorageAdapter(supabase, 'your-bucket'),\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface DndevProviders {\n /** Client-side authentication provider */\n auth?: AuthProvider;\n /** Server-side token verification and user management */\n serverAuth?: IServerAuthAdapter;\n /** Database / CRUD operations (required) */\n crud: ICrudAdapter;\n /** File and image storage */\n storage?: IStorageAdapter;\n /** Server-side function invocation (Edge Functions, Cloud Functions, API routes) */\n callable?: ICallableProvider;\n}","DndevStoreApi":"/**\n * DoNotDev store API interface without direct Zustand dependency.\n * Renamed from StoreApi to avoid shadowing Zustand's StoreApi.\n * @template T - The store state type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DndevStoreApi<T> {\n /** Returns the current state */\n getState: () => T;\n /** Updates the store state */\n setState: (partial: Partial<T> | ((state: T) => Partial<T>), replace?: boolean) => void;\n /** Subscribes to state changes */\n subscribe: (listener: (state: T, prevState: T) => void) => () => void;\n}","DoNotDevCookieCategories":"/**\n * Cookie consent categories\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevCookieCategories {\n /** Always granted, cannot be declined - core functionality */\n necessary: boolean;\n /** Requires consent - Firebase Auth, user preferences */\n functional: boolean;\n /** Requires consent - analytics, performance monitoring */\n analytics: boolean;\n /** Requires consent - marketing, ads, remarketing */\n marketing: boolean;\n}","DocumentSubscriptionCallback":"/** Callback for single-document subscriptions */\ntype DocumentSubscriptionCallback<T> = (data: T | null, error?: Error) => void;","DynamicFormRule":"/**\n * Dynamic form rule for showing/hiding fields\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DynamicFormRule {\n /** Condition that triggers this rule */\n condition: FieldCondition | FieldCondition[];\n /** Fields to show when condition is met */\n showFields?: string[];\n /** Fields to hide when condition is met */\n hideFields?: string[];\n /** Fields to disable when condition is met */\n disableFields?: string[];\n /** Fields to enable when condition is met */\n enableFields?: string[];\n}","Editable":"/**\n * Editable level for entity fields\n * Controls who can MODIFY a field\n * - true: Anyone who can see the field\n * - false: Nobody (read-only, still shown in form)\n * - 'admin': Admin+ can edit (role hierarchy)\n * - 'super': Super only\n * - 'create-only': Editable on create, read-only after\n * - 'generated': DB-generated — hidden from forms, stripped from writes\n * - 'computed': UI-computed (derived from other fields) — hidden from forms, included in writes\n *\n * Custom role strings (e.g. future hierarchy keys) are accepted the same way as\n * {@link FieldType}: `(string & {})` keeps known literals distinguishable for\n * narrowing; plain `| string` would collapse to `boolean | string` and break\n * comparisons to `EDITABLE.GENERATED` / `EDITABLE.COMPUTED`.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Editable = (typeof EDITABLE)[keyof typeof EDITABLE] | (string & {}","EffectiveConnectionType":"/**\n * Effective connection speed types from the Network Information API\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype EffectiveConnectionType = 'slow-2g' | '2g' | '3g' | '4g' | 'unknown';","EmailConfig":"/** Configuration for email feature (consumer-facing) */\ninterface EmailConfig {\n /** Email provider */\n provider: EmailProvider;\n /** Default \"from\" address */\n defaultFrom: string;\n /** Default reply-to address */\n replyTo?: string;\n}","EmailErrorCode":"/** Email error code type */\ntype EmailErrorCode = (typeof EMAIL_ERROR_CODES)[keyof typeof EMAIL_ERROR_CODES];","EmailProvider":"/** Email provider type */\ntype EmailProvider = (typeof EMAIL_PROVIDERS)[keyof typeof EMAIL_PROVIDERS];","EmailRouteConfig":"/** Email route configuration (server-side) */\ninterface EmailRouteConfig {\n /** Email provider */\n provider: EmailProvider;\n /** Default \"from\" address (e.g., \"Frabled <noreply@frabled.com>\") */\n defaultFrom: string;\n /** Default reply-to address */\n replyTo?: string;\n /** Registered templates */\n templates: EmailTemplateRegistry;\n}","EmailTemplate":"/**\n * Email template with i18n support.\n * Templates render subject + HTML body from typed data and locale.\n *\n * @template TData - Shape of the template data\n */\ninterface EmailTemplate<TData extends Record<string, unknown> = Record<string, unknown>> {\n /** Render email subject for a given locale */\n subject: (data: TData, locale: string) => string;\n /** Render email HTML body for a given locale */\n html: (data: TData, locale: string) => string;\n}","EmailTemplateRegistry":"/**\n * Registry of named email templates.\n * Each key is a template ID used in send requests.\n */\ntype EmailTemplateRegistry = Record<string, EmailTemplate<any>>;","EmailVerificationHookResult":"/**\n * Result type for the useEmailVerification hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EmailVerificationHookResult {\n isVerified: boolean;\n isLoading: boolean;\n error: string | null;\n sendVerificationEmail: () => Promise<void>;\n checkVerificationStatus: () => Promise<void>;\n}","EmailVerificationStatus":"/**\n * Email verification status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype EmailVerificationStatus = 'verified' | 'pending' | 'error';","Entity":"/**\n * Complete entity definition including base fields\n * Created by defineEntity() which merges defaults\n *\n * Extends BusinessEntity but overrides optional properties to required:\n * - namespace: always computed (defaults to `entity-${name.toLowerCase()}`)\n * - access: always merged with defaults\n * - fields: includes base fields (id, createdAt, etc.)\n * - scope: preserved if provided (for multi-tenancy)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Entity<out F extends Record<string, EntityField> = EntityFieldMapDefault> extends Omit<BusinessEntity<F>, 'access' | 'namespace'> {\n /** Field definitions including base fields */\n fields: F;\n /** Access configuration with defaults applied (always present after defineEntity) */\n access: Required<EntityAccessConfig>;\n /** i18n namespace for translations (always present after defineEntity, defaults to `entity-${name.toLowerCase()}`) */\n namespace: string;\n /** Multi-tenancy scope configuration (preserved from BusinessEntity if provided) */\n scope?: ScopeConfig;\n}","EntityAccessConfig":"/**\n * Entity-level access configuration\n * Controls who can perform CRUD operations on the entity\n *\n * Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n * Higher roles inherit access to lower-level operations.\n *\n * @default DEFAULT_ENTITY_ACCESS (read: 'guest', create/update/delete: 'admin')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityAccessConfig {\n /** Minimum role required to create entities */\n create?: UserRole;\n /** Minimum role required to read entities (field visibility still applies) */\n read?: UserRole;\n /** Minimum role required to update entities */\n update?: UserRole;\n /** Minimum role required to delete entities */\n delete?: UserRole;\n}","EntityAccessDefaults":"/** Type derived from DEFAULT_ENTITY_ACCESS for type safety */\ntype EntityAccessDefaults = typeof DEFAULT_ENTITY_ACCESS;","EntityBrowseBaseProps":"/**\n * Shared base props for entity browsing components (table and card grid).\n * Both fetch the same data — just render differently based on entity field config.\n */\ninterface EntityBrowseBaseProps {\n /** The entity definition */\n entity: AnyEntity;\n /**\n * Base path for view. Default: `/${collection}`. View = `${basePath}/${id}`.\n */\n basePath?: string;\n /**\n * Called when user clicks a row/card. If provided, overrides default navigation to basePath/:id (e.g. open sheet).\n */\n onClick?: (id: string) => void;\n /** Hide filters section (default: false) */\n hideFilters?: boolean;\n /** Current user role (for UI toggle only - backend enforces security) */\n userRole?: string;\n /** Optional query constraints (server-side filtering via adapter) */\n queryOptions?: QueryOptions;\n /** Cache stale time in ms */\n staleTime?: number;\n /**\n * Tone for the filter and results Section wrappers.\n * Use 'base' or 'muted' when the app has an image background so sections are readable.\n * @default 'ghost' (transparent — inherits parent background)\n */\n tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';\n /**\n * Static data for design-time preview.\n * When provided, the component renders this data directly instead of\n * fetching from the CRUD backend. All interactive elements (edit, delete,\n * create, filters, favorites, navigation) are rendered but disabled.\n *\n * No CrudProvider or backend connection required.\n * Hooks are never called - rendering delegates to a standalone preview component.\n *\n * @example\n * ```tsx\n * // Design preview with mock data\n * <EntityCardList entity={productEntity} preview={mockProducts} />\n *\n * // Spec chat: entity generated from user description\n * <EntityList entity={specEntity} preview={generateMockData(specEntity, 6)} />\n * ```\n */\n preview?: (Record<string, unknown> & {\n id: string;\n })[];\n}","EntityCardListProps":"/** Props for the entity card grid component with filtering and sorting. */\ninterface EntityCardListProps extends EntityBrowseBaseProps {\n /** Grid columns (responsive) - defaults to [1, 2, 3, 4] */\n cols?: number | [number, number, number, number];\n /** Optional filter function to filter items client-side */\n filter?: (item: Record<string, unknown> & {\n id: string;\n }) => boolean;\n /**\n * Custom label for the results section title.\n * Receives the current item count so you can handle pluralization and empty state.\n * When not provided, defaults to the built-in i18n label (\"Found N occurrences\").\n *\n * @param count - Number of items after all filters are applied\n * @returns The string to display as the results section title\n *\n * @example\n * ```tsx\n * // Simple override\n * <EntityCardList\n * entity={apartmentEntity}\n * resultLabel={(count) =>\n * count === 0\n * ? 'No apartments available'\n * : count === 1\n * ? 'Your future home is right here'\n * : `Your future home is among these ${count} apartments`\n * }\n * />\n * ```\n */\n resultLabel?: (count: number) => string;\n /** Render a custom overlay on each card (e.g. status stamp). Receives the item. */\n renderCardOverlay?: (item: EntityRecord & {\n id: string;\n }) => ReactNode;\n /** Client-side sort: field config, comparator function, or null to disable. Defaults to entity.defaultSort. */\n clientSort?: {\n field: string;\n direction?: 'asc' | 'desc';\n } | ((a: any, b: any) => number) | null;\n /** Make filter/results sections collapsible. @default false */\n collapsible?: boolean;\n /** Initial open state when collapsible. Only relevant when `collapsible` is true. */\n defaultOpen?: boolean;\n}","EntityDisplayRendererProps":"/** Props for the read-only entity detail renderer with role-based visibility. */\ninterface EntityDisplayRendererProps<T extends EntityRecord = EntityRecord> {\n /** Entity definition - pass the full entity from defineEntity() */\n entity: AnyEntity;\n /** Entity ID to fetch. Not required when `preview` is provided. */\n id?: string;\n /** Translation function (optional - auto-generated if not provided) */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /** Additional CSS classes */\n className?: string;\n /** Custom loading message */\n loadingMessage?: string;\n /** Custom not found message */\n notFoundMessage?: string;\n /**\n * Current viewer's role for visibility checks.\n * Auto-detected from auth when not provided. Pass explicitly to override.\n * Fallback chain: prop → useAuthSafe('userRole') → 'guest'\n */\n viewerRole?: string;\n /**\n * Field names to exclude from rendering.\n * Use when the page already displays certain fields in a custom hero/header section.\n */\n excludeFields?: string[];\n /**\n * Static data for design-time preview.\n * When provided, renders this record directly instead of fetching by id.\n * The `id` prop becomes unnecessary (ignored when preview is set).\n *\n * @example\n * ```tsx\n * <EntityDisplayRenderer entity={productEntity} preview={mockProduct} />\n * ```\n */\n preview?: Partial<T>;\n}","EntityField":"/**\n * Definition of a single entity field\n * @template T - The field type for type-safe validation and value inference\n *\n * @example\n * ```typescript\n * // Text field - TypeScript knows value is string\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * }\n *\n * // Select field with dropdown options\n * status: {\n * type: 'select',\n * visibility: 'user',\n * validation: {\n * required: true,\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n * }\n * }\n * ```\n *\n * **Note:** For `select`, `multiselect`, and `radio` fields, dropdown options must be defined in `validation.options` as an array of `{ value: string, label: string }` objects.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityField<T extends string = FieldType> {\n /** Field identifier - required for form binding */\n name: string;\n /** The field type, which determines the UI component and validation */\n type: T;\n /**\n * Who can SEE this field\n * - 'guest': Everyone (even unauthenticated)\n * - 'user': Authenticated users only (users see both guest and user fields)\n * - 'admin': Admins only\n * - 'technical': Internal/system fields (shown as read-only in edit forms)\n * - 'hidden': Never shown in UI, only exists in DB (passwords, tokens, API keys)\n */\n visibility: Visibility;\n /**\n * Who can MODIFY this field\n * - true: Anyone who can see the field (default)\n * - false: Nobody (read-only display)\n * - 'admin': Only admins can edit\n * - 'create-only': Editable on create, read-only after\n */\n editable?: Editable;\n /** Validation rules for this field. For select/multiselect/radio fields, include `options` array here. */\n validation?: ValidationRules<T>;\n /** Whether the field is internationalized */\n i18n?: boolean;\n /** Display label for the field */\n label: string;\n /** Hint text to display under the field */\n hint?: string;\n /** Field dependencies for dynamic forms */\n dependsOn?: {\n /** Field name this field depends on */\n field: string;\n /** Value that should trigger this field to show */\n value?: ValueTypeForField<FieldType>;\n /** Custom condition function */\n condition?: (formData: Record<string, unknown>) => boolean;\n };\n /** Field grouping for layout */\n group?: {\n /** Group name */\n name: string;\n /** Group title */\n title?: string;\n /** Group description */\n description?: string;\n /** Whether group is collapsible */\n collapsible?: boolean;\n /** Whether group is collapsed by default */\n collapsed?: boolean;\n };\n /**\n * Dynamic conditions for field behavior based on other field values.\n * Controls visibility, disabled, required, and readonly states at runtime.\n *\n * @example\n * ```typescript\n * conditions: {\n * visible: when('productType').equals('car'),\n * required: when('productType').equals('car'),\n * }\n * ```\n */\n conditions?: ConditionalBehavior;\n /** UI-specific configuration for field rendering */\n options?: UIFieldOptions<T>;\n}","EntityFieldMapDefault":"/**\n * Default merged field map when an entity is not parameterized with a literal field map.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype EntityFieldMapDefault = Record<string, EntityField> & BaseEntityFields;","EntityFormRendererProps":"/** Props for the entity form renderer with create/edit modes, validation, and navigation. */\ninterface EntityFormRendererProps<T extends EntityRecord = EntityRecord> {\n /** Entity definition - pass the full entity from defineEntity() */\n entity: AnyEntity;\n /** Form submission handler */\n onSubmit: (data: T) => void | Promise<void>;\n /** Translation function */\n t?: (key: string, options?: Record<string, unknown>) => string;\n /** Additional CSS classes */\n className?: string;\n /** Submit button text */\n submitText?: string;\n /**\n * Whether form data is loading (shows loading overlay)\n * Use this when fetching existing entity data for edit mode\n */\n loading?: boolean;\n /** Initial form values */\n defaultValues?: Partial<T>;\n /** Submit button variant */\n submitVariant?: 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';\n /** Secondary button text */\n secondaryButtonText?: string;\n /** Secondary button variant */\n secondaryButtonVariant?: 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';\n /** Secondary button submission handler */\n onSecondarySubmit?: (data: T) => void | Promise<void>;\n /**\n * Current viewer's role for editability checks.\n * Auto-detected from auth when not provided. Pass explicitly to override (e.g. View-As preview).\n * Fallback chain: prop → useAuthSafe('userRole') → 'guest'\n */\n viewerRole?: string;\n /**\n * Form operation type\n * @default 'create' (or 'edit' if defaultValues provided)\n */\n operation?: 'create' | 'edit';\n /**\n * Optional form ID for tracking loading state.\n * If not provided, one will be generated automatically.\n */\n formId?: string;\n /**\n * Cancel button text. If provided, shows a cancel button.\n * If not provided but onCancel is provided, shows default \"Cancel\" text.\n * Set to null to explicitly hide cancel button.\n */\n cancelText?: string | null;\n /**\n * Success path - full path to navigate after successful submit (e.g., `/products`).\n * If not provided, stays on page (edit) or relies on onSubmit to navigate (create).\n */\n successPath?: string;\n /**\n * Cancel path - full path (e.g., `/products`). If not provided, navigates back.\n * If onCancel callback is provided, it takes precedence over cancelPath.\n */\n cancelPath?: string;\n /**\n * Callback when cancel is clicked (after confirmation if dirty).\n * If not provided, cancel navigates to cancelPath or `/${collection}`.\n * If provided, cancel button will show (with cancelText or default \"Cancel\").\n */\n onCancel?: () => void;\n /**\n * Hide visibility indicators (badges + View As toggle).\n * When false (default), shows badge next to non-guest fields and View As role selector.\n * @default false\n */\n hideVisibilityInfo?: boolean;\n /**\n * Explicit form instance key for isolation between records.\n * When provided, React remounts the form whenever this value changes —\n * ensuring clean state when navigating between entities (e.g. `/cars/:id`).\n *\n * Pass the route ID: `instanceKey={id}`\n *\n * @example\n * ```tsx\n * // Automatically isolates form state per car — no manual reset needed\n * <EntityFormRenderer entity={carEntity} instanceKey={id} defaultValues={carData} />\n * ```\n */\n instanceKey?: string;\n}","EntityHookErrors":"/** Error type for entity hook operations (CRUD mutations). */\ntype EntityHookErrors = (typeof ENTITY_HOOK_ERRORS)[keyof typeof ENTITY_HOOK_ERRORS];","EntityListProps":"/** Props for the entity data table component with server/client pagination. */\ninterface EntityListProps extends EntityBrowseBaseProps {\n /**\n * Pagination mode:\n * - `'auto'` (default) — fetches up to 1000 client-side. Auto-switches to server if total > 1000.\n * - `'client'` — forces client-side (all data in memory, instant search/sort/filter).\n * - `'server'` — forces server-side (cursor pagination, one page at a time).\n */\n pagination?: 'auto' | 'client' | 'server';\n /** Page size - passed to DataTable. If not provided, DataTable uses its default (12) */\n pageSize?: number;\n /**\n * Enable export to CSV functionality\n * @default true (admin tables typically need export)\n */\n exportable?: boolean;\n}","EntityMetadata":"/**\n * Metadata fields for an entity.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityMetadata {\n /** ISO 8601 timestamp when the entity was created */\n createdAt: string;\n /** ISO 8601 timestamp when the entity was last updated */\n updatedAt: string;\n /** ID of the user who created the entity */\n createdById: string;\n /** ID of the user who last updated the entity */\n updatedById: string;\n}","EntityOwnershipConfig":"/**\n * Ownership configuration for stakeholder access (marketplace-style entities).\n * When set, drives Firestore rule condition generation, list/listCard query constraints,\n * and visibility: 'owner' field masking.\n *\n * @example\n * ```typescript\n * ownership: {\n * ownerFields: ['providerId', 'customerId'],\n * publicCondition: [\n * { field: 'status', op: '==', value: 'available' },\n * { field: 'isApproved', op: '==', value: true },\n * ],\n * }\n * ```\n */\ninterface EntityOwnershipConfig {\n /** Document fields whose value is a user id (e.g. providerId, customerId) */\n ownerFields: string[];\n /** Conditions joined with && for \"public\" read (e.g. status == 'available') */\n publicCondition?: EntityOwnershipPublicCondition[];\n}","EntityOwnershipPublicCondition":"/**\n * Single condition for public read/update in Firestore rules.\n * Joined with && when publicCondition is an array.\n */\ninterface EntityOwnershipPublicCondition {\n field: string;\n op: string;\n value: string | boolean | number;\n}","EntityRecommendationsProps":"/** Props for the entity recommendations section (e.g. \"Similar items\"). */\ninterface EntityRecommendationsProps {\n /** The entity definition */\n entity: AnyEntity;\n /** Query constraints — caller defines \"related by what\" (where, limit, etc.) */\n queryOptions: QueryOptions;\n /** Section title (e.g. \"Similar apartments\") */\n title?: string;\n /** Base path for card links. Default: `/${entity.collection}` */\n basePath?: string;\n /** Grid columns — default `[1,1,3,3]` */\n cols?: number | [number, number, number, number];\n /**\n * Tone for the Section wrapper.\n * Use 'base' or 'muted' when the app has an image background so the section is readable.\n * @default 'ghost' (transparent — inherits parent background)\n */\n tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';\n /** Additional className on wrapper Section */\n className?: string;\n}","EntityRecord":"/**\n * Entity record type - a record where values are valid field values\n * Accepts unknown since consumers can register custom field types\n */\ntype EntityRecord = Record<string, AnyFieldValue>;","EntityRowFromFields":"/**\n * CRUD/cache document row inferred from an entity `fields` map (SSOT with `defineEntity` literals).\n * Intersects {@link Record} so rows satisfy `T extends Record<string, unknown>` (bulk, PII, adapters).\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype EntityRowFromFields<F extends Record<string, EntityField>> = {\n [K in keyof F]: F[K] extends EntityField<infer FT> ? FT extends keyof FieldTypeToValue ? FieldTypeToValue[FT] : unknown : unknown;\n}","EntityTemplateProps":"/**\n * Base props for entity templates\n * @template T - The form values type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityTemplateProps<T extends FieldValues> {\n /** The DoNotDev schema for the entity */\n schema: dndevSchema<T>;\n /** Optional overrides for field configuration */\n fieldOverrides?: Partial<Record<keyof T, Partial<EntityField>>>;\n}","EntityTranslations":"/**\n * Entity translation interface\n * Maps entity field names to their translated labels and hints\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EntityTranslations {\n /** Translated field labels */\n fields: Record<string, string>;\n /** Translated field hints/descriptions */\n hints: Record<string, string>;\n /** Translated validation error messages */\n validations?: Record<string, string>;\n /** Translated placeholder text */\n placeholders?: Record<string, string>;\n}","EnvironmentMode":"/**\n * Environment mode type derived from ENVIRONMENTS constant\n */\ntype EnvironmentMode = (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];","ErrorCode":"/** Standardized error code derived from ERROR_CODES constant. */\ntype ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];","ErrorSeverity":"/** Error severity level for notifications and logging. */\ntype ErrorSeverity = (typeof ERROR_SEVERITY)[keyof typeof ERROR_SEVERITY];","ErrorSource":"/** Origin of an error for tracking and reporting. */\ntype ErrorSource = (typeof ERROR_SOURCE)[keyof typeof ERROR_SOURCE];","ExchangeTokenParams":"/**\n * Exchange token parameters interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenParams {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n code: string;\n redirectUri: string;\n codeVerifier?: string;\n}","ExchangeTokenRequest":"/**\n * Exchange token request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenRequest {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n code: string;\n redirectUri: string;\n codeVerifier?: string;\n state?: string;\n instance?: string;\n idempotencyKey?: string;\n}","ExchangeTokenResponse":"/**\n * Normalized response from server-side token exchange.\n * Callable providers (Firebase, Supabase) return this shape.\n *\n * @version 0.1.0\n * @since 0.1.0\n * @author AMBROISE PARK Consulting\n */\ninterface ExchangeTokenResponse {\n success: boolean;\n credentials: OAuthCredentials;\n profile?: BaseUserProfile;\n}","FaviconConfig":"/**\n * Favicon and PWA configuration\n *\n * Configure automatic favicon generation and PWA manifest icons.\n *\n * @example\n * ```typescript\n * const faviconConfig: FaviconConfig = {\n * appName: 'My App',\n * themeColor: '#000000',\n * backgroundColor: '#ffffff'\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FaviconConfig {\n /** Enable automatic favicon system (default: true) */\n enabled?: boolean;\n /** App name for PWA manifest */\n appName?: string;\n /** Theme color for mobile browsers */\n themeColor?: string;\n /** Background color for splash screens */\n backgroundColor?: string;\n /** Include PWA manifest icons */\n includeManifestIcons?: boolean;\n /** Include Microsoft tile icons */\n includeMSIcons?: boolean;\n}","Feature":"/**\n * Represents a feature that can be enabled or disabled for users,\n * often tied to a specific subscription tier.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Feature {\n /** Unique identifier for the feature */\n id: string;\n /** Human-readable name for the feature */\n name: string;\n /** Description of what the feature does */\n description?: string;\n /** Whether the feature is currently enabled */\n enabled: boolean;\n /** Required subscription tier for this feature */\n requiredTier?: string;\n}","FeatureAccessHookResult":"/**\n * Result type for the useFeatureAccess hook\n * NOTE: subscription is now always present\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureAccessHookResult {\n hasFeature: (featureId: string) => boolean;\n hasTier: (requiredTier: string) => boolean;\n subscription: SubscriptionInfo;\n}","FeatureConsentRequirement":"/**\n * Get consent requirement for a specific feature\n *\n * @example\n * ```typescript\n * type AuthConsent = FeatureConsentRequirement<'auth'>; // 'functional'\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureConsentRequirement<F extends FeatureName> = (typeof FEATURE_CONSENT_MATRIX)[F]['requiresConsent'];","FeatureHookResult":"/**\n * Result type for the useFeature hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureHookResult {\n enabled: boolean;\n}","FeatureId":"/**\n * Type for feature names\n * Apps can extend this with their own custom features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureId = (typeof FEATURES)[keyof typeof FEATURES] | string;","FeatureName":"/**\n * Feature name type - auto-derived from matrix\n * TypeScript ensures only valid features are used\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureName = keyof typeof FEATURE_CONSENT_MATRIX;","FeatureStatus":"/**\n * Feature status type derived from FEATURE_STATUS constant\n */\ntype FeatureStatus = (typeof FEATURE_STATUS)[keyof typeof FEATURE_STATUS];","FeaturesConfig":"/**\n * Feature flags and debug configuration\n *\n * Controls app behavior and GDPR compliance.\n * Feature availability is auto-detected via env vars/packages.\n *\n * @example\n * ```typescript\n * const featuresConfig: FeaturesConfig = {\n * debug: true,\n * offlineTrustEnabled: true,\n * requiredCookies: ['necessary', 'analytics']\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeaturesConfig {\n /** Enable debug tools (default: false in production, true in development) */\n debug?: boolean;\n /**\n * Enable offline trust for cached claims (default: false)\n *\n * When true:\n * - Online: Always verify with server (don't trust cache)\n * - Offline: Use cached claims (graceful degradation)\n *\n * When false:\n * - Online: Always verify with server\n * - Offline: Reject (throw error, require network)\n *\n * @default false\n */\n offlineTrustEnabled?: boolean;\n /**\n * Cookie consent categories to display in GDPR banner\n *\n * Controls which cookie categories users can consent to.\n * Framework always includes 'necessary' (cannot be disabled).\n *\n * @example\n * ```typescript\n * features: {\n * requiredCookies: ['necessary', 'functional', 'analytics']\n * }\n * ```\n *\n * @default ['necessary']\n */\n requiredCookies?: string[];\n}","FeaturesPluginConfig":"/**\n * Features Plugin Configuration\n * @description Configuration for feature discovery and enablement\n *\n * @remarks\n * This interface defines the structure for feature discovery data that is populated\n * at build time and made available at runtime for feature availability checking.\n *\n * @example\n * ```typescript\n * // Generated by feature discovery system\n * const featuresConfig: FeaturesPluginConfig = {\n * available: ['auth', 'billing', 'i18n', 'oauth'],\n * enabled: ['auth', 'i18n'],\n * overridden: false\n * };\n * ```\n */\ninterface FeaturesPluginConfig {\n /**\n * List of all available features discovered in packages/features/\n * @example ['auth', 'billing', 'i18n', 'oauth']\n */\n available: string[];\n}","FeaturesRequiringAnyConsent":"/**\n * Features that require any consent (excludes null)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesRequiringAnyConsent = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends null ? never : K;\n}","FeaturesRequiringConsent":"/**\n * Get all features requiring a specific consent category\n *\n * @example\n * ```typescript\n * type FunctionalFeatures = FeaturesRequiringConsent<'functional'>;\n * // 'auth' | 'oauth' | 'billing'\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesRequiringConsent<C extends keyof DoNotDevCookieCategories> = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends C ? K : never;\n}","FeaturesWithoutConsent":"/**\n * Features that don't require consent\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeaturesWithoutConsent = {\n [K in FeatureName]: FeatureConsentRequirement<K> extends null ? K : never;\n}","FieldCondition":"/**\n * Condition for dynamic field visibility\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FieldCondition {\n /** Field name to check */\n field: string;\n /** Comparison operator */\n operator: 'equals' | 'not-equals' | 'contains' | 'greater-than' | 'less-than' | 'exists' | 'not-exists';\n /** Value to compare against */\n value?: any;\n /** For complex conditions, use a function */\n evaluate?: (formData: any) => boolean;\n}","FieldType":"/**\n * Supported field types for entities\n * These determine the UI components and validation rules used for each field\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FieldType = (typeof FIELD_TYPES)[number] | (string & {}","FieldTypeToValue":"/**\n * Maps field types to their corresponding TypeScript types\n * Used for type-safe form handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FieldTypeToValue = {\n address: {\n formatted_address: string;\n latitude: number;\n longitude: number;\n [key: string]: any;\n };\n array: any[];\n avatar: string;\n badge: string;\n boolean: boolean;\n checkbox: boolean;\n combobox: string;\n color: string;\n date: string;\n 'datetime-local': string;\n document: FileAsset | null;\n documents: FileAsset[];\n email: string;\n 'field-array': Record<string, unknown>[];\n file: FileAsset | null;\n files: FileAsset[];\n geopoint: {\n lat: number;\n lng: number;\n };\n hidden: string;\n iban: string;\n image: Picture | null;\n images: Picture[];\n map: Record<string, any>;\n month: string;\n multiselect: string[];\n number: number;\n price: {\n amount: number;\n currency?: string;\n vatIncluded?: boolean;\n discountPercent?: number;\n };\n password: string;\n radio: string;\n reference: string;\n range: number;\n reset: never;\n select: string;\n submit: never;\n tel: string;\n text: string;\n textarea: string;\n time: string;\n timestamp: string;\n switch: string | boolean;\n url: string;\n week: string;\n year: number;\n}","FileAsset":"/**\n * FileAsset type for generic file uploads (documents, any files)\n * Used by FileFieldComponent and DocumentFieldComponent\n */\ninterface FileAsset {\n /** Download URL for the file */\n url: string;\n /** Original filename */\n filename: string;\n /** File size in bytes */\n size: number;\n /** MIME type (e.g., 'application/pdf') */\n mimeType?: string;\n /** ISO timestamp when uploaded */\n uploadedAt?: string;\n}","FirebaseCallOptions":"/**\n * Options for Firebase functions call with abort support\n * Allows for cancellable Firebase function calls\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirebaseCallOptions {\n /** Optional key for the abort controller */\n abortKey?: string;\n /** Optional external abort signal to link with internal controller */\n externalSignal?: AbortSignal;\n /** Flag for public function calls */\n public?: boolean;\n /** HTTP callable timeout in milliseconds */\n timeout?: number;\n}","FirebaseConfig":"/**\n * Firebase configuration object\n * Contains the configuration needed to initialize a Firebase app\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirebaseConfig {\n /** Firebase API key */\n apiKey: string;\n /** Firebase authentication domain */\n authDomain: string;\n /** Firebase project ID */\n projectId: string;\n /** Firebase storage bucket URL (optional) */\n storageBucket?: string;\n /** Firebase messaging sender ID (optional) */\n messagingSenderId?: string;\n /** Firebase app ID (optional) */\n appId?: string;\n /** Firebase measurement ID for analytics (optional) */\n measurementId?: string;\n}","FirestoreTimestamp":"/**\n * Interface mimicking Firebase Timestamp for type compatibility\n * without requiring the actual Firebase Admin SDK\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirestoreTimestamp {\n seconds: number;\n nanoseconds: number;\n toDate(): Date;\n toMillis(): number;\n isEqual(other: FirestoreTimestamp): boolean;\n valueOf(): string;\n}","FirestoreUniqueConstraintValidator":"/**\n * Interface for Firebase uniqueness validation\n * Used to check if a value would create a duplicate in a collection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FirestoreUniqueConstraintValidator {\n /**\n * Checks if a value would cause a duplicate in a given collection\n *\n * @param collection - The collection to check\n * @param field - The field to check\n * @param value - The value to check\n * @param currentDocId - The ID of the current document (for updates)\n * @returns A promise that resolves to true if a duplicate exists\n */\n checkDuplicate: (collection: string, field: string, value: any, currentDocId?: string) => Promise<boolean>;\n}","FooterConfig":"/**\n * Footer zone configuration\n *\n * Simple footer: Copyright (left) | LegalLinks + DoNotDev (right)\n * - `null`: Hide footer\n * - `undefined`: Use defaults (copyright + legal links + DoNotDev)\n * - `{ copyright?: ..., legalLinks?: ... }`: Custom configuration\n */\ninterface FooterConfig {\n /** Copyright configuration\n * - `null`: Hide copyright\n * - `undefined`: Use default (© YEAR appName. All rights reserved)\n * - `string`: Custom copyright text\n */\n copyright?: null | string;\n /** Legal links configuration\n * - `null`: Hide legal links\n * - `Array<{ path, label }>`: Custom legal links\n * - `undefined`: Use framework defaults\n */\n legalLinks?: null | Array<{\n path: string;\n label: string;\n }>;\n}","FooterMode":"/**\n * Footer mode type - auto-derived from constants\n */\ntype FooterMode = (typeof FOOTER_MODE)[keyof typeof FOOTER_MODE];","FooterZoneConfig":"/**\n * Footer zone configuration\n *\n * - `FooterConfig` object: configure DnDevFooter (copyright, legal links)\n * - `SlotContent` function: replace DnDevFooter with custom component\n * - `null`: hide footer\n * - `undefined`: use defaults\n */\ntype FooterZoneConfig = FooterConfig | SlotContent | null;","FormConfig":"/**\n * Form configuration for advanced form features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FormConfig {\n /** Form type */\n type?: 'single' | 'multi-step' | 'dynamic' | 'wizard';\n /** Steps for multi-step forms */\n steps?: FormStep[];\n /** Dynamic field rules */\n rules?: DynamicFormRule[];\n /** Whether to persist form state (auto-save drafts) */\n persist?: boolean;\n /** Persistence configuration */\n persistence?: {\n /** Storage key prefix */\n key?: string;\n /** Auto-save interval in milliseconds */\n autoSaveInterval?: number;\n /** Whether to show save indicator */\n showSaveIndicator?: boolean;\n };\n /** Form layout configuration */\n layout?: {\n /** Number of columns for field layout */\n columns?: 1 | 2 | 3;\n /** Whether to show field labels */\n showLabels?: boolean;\n /** Whether to show field hints */\n showHints?: boolean;\n /** Custom CSS classes */\n className?: string;\n };\n /** Form behavior configuration */\n behavior?: {\n /** Whether to show progress indicator */\n showProgress?: boolean;\n /** Whether to allow step navigation */\n allowStepNavigation?: boolean;\n /** Whether to validate on step change */\n validateOnStepChange?: boolean;\n /** Whether to show step numbers */\n showStepNumbers?: boolean;\n };\n}","FormStep":"/**\n * Form step configuration for multi-step forms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FormStep {\n /** Step title displayed in navigation */\n title: string;\n /** Step description (optional) */\n description?: string;\n /** Fields to include in this step */\n fields: string[];\n /** Whether this step is required */\n required?: boolean;\n /** Custom validation for this step */\n validation?: {\n /** Custom validation function */\n validate?: (data: any) => boolean | string;\n /** Error message if validation fails */\n message?: string;\n };\n}","FunctionCallConfig":"/**\n * Function call configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallConfig {\n /** Platform to use for function calls */\n platform: FunctionPlatform;\n /** Region for the function (platform-specific) */\n region?: string;\n /** Default timeout in milliseconds */\n timeout?: number;\n /** Number of retry attempts */\n retries?: number;\n /** Base URL for custom platforms */\n baseUrl?: string;\n}","FunctionCallContext":"/**\n * Function call context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallContext {\n /** User authentication token */\n token?: string;\n /** User ID */\n userId?: string;\n /** Request ID for tracking */\n requestId?: string;\n /** Additional context data */\n metadata?: Record<string, any>;\n}","FunctionCallOptions":"/**\n * Function call options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionCallOptions {\n /** Whether this is a public function call (no auth required) */\n public?: boolean;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Number of retry attempts */\n retries?: number;\n /** Abort signal for request cancellation */\n signal?: AbortSignal;\n /** Whether to cache the response */\n cache?: boolean;\n /** Cache stale time in milliseconds */\n staleTime?: number;\n /** Custom headers */\n headers?: Record<string, string>;\n}","FunctionCallResult":"/**\n * Function call result\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionCallResult<T> = {\n success: true;\n data: T;\n error?: never;\n}","FunctionClient":"/**\n * Function client interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionClient {\n /** Call a function */\n callFunction<TData>(functionName: string, params?: object, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: FunctionCallOptions): Promise<TData>;\n /** Get client configuration */\n getConfig(): FunctionCallConfig;\n /** Update client configuration */\n updateConfig(config: Partial<FunctionCallConfig>): void;\n}","FunctionClientFactoryOptions":"/**\n * Function client factory options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionClientFactoryOptions {\n /** Default configuration */\n config?: Partial<FunctionCallConfig>;\n /** Authentication token provider */\n getToken?: () => Promise<string | null>;\n /** Error handler */\n onError?: (error: FunctionError) => void;\n /** Request interceptor */\n onRequest?: (functionName: string, params: any) => void;\n /** Response interceptor */\n onResponse?: (functionName: string, response: any) => void;\n}","FunctionDefaults":"/**\n * App-level defaults for all functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionDefaults {\n /** Default deployment regions */\n region?: string[];\n /** Default platform version */\n platform?: 'gcfv1' | 'gcfv2';\n /** App label for all functions */\n labels?: Record<string, string>;\n /** Default memory allocation */\n memory?: FunctionMemory;\n /** Default timeout in seconds */\n timeoutSeconds?: number;\n}","FunctionEndpoint":"/**\n * Generated function endpoint entry (for YAML output)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionEndpoint {\n /** Function name (key in endpoints object) */\n name: string;\n /** Deployment regions */\n region: string[];\n /** Platform version */\n platform: 'gcfv1' | 'gcfv2';\n /** Trigger configuration */\n callableTrigger?: Record<string, never>;\n httpsTrigger?: Record<string, never>;\n scheduleTrigger?: {\n schedule: string;\n };\n /** Entry point in bundled code */\n entryPoint: string;\n /** Labels for organization */\n labels: Record<string, string>;\n /** Memory allocation */\n memory?: string;\n /** Timeout */\n timeoutSeconds?: number;\n /** Min instances */\n minInstances?: number;\n /** Max instances */\n maxInstances?: number;\n /** Secret environment variables */\n secretEnvironmentVariables?: Array<{\n key: string;\n }>;\n}","FunctionError":"/**\n * Function error details\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionError {\n /** Error code */\n code: string;\n /** Error message */\n message: string;\n /** Additional error details */\n details?: any;\n /** Platform-specific error information */\n platform?: {\n name: FunctionPlatform;\n errorCode?: string;\n errorMessage?: string;\n };\n}","FunctionLoader":"/**\n * Function loader interface for lazy loading\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionLoader {\n /** Load the functions system */\n load(): Promise<FunctionSystem>;\n /** Check if system is loaded */\n isLoaded(): boolean;\n /** Get loaded system (throws if not loaded) */\n getSystem(): FunctionSystem;\n}","FunctionMemory":"/**\n * Memory allocation options for Cloud Functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionMemory = '128MB' | '256MB' | '512MB' | '1GB' | '2GB' | '4GB' | '8GB';","FunctionMeta":"/**\n * Function-level deployment metadata\n * @description Per-function configuration for Firebase deployment (like PageMeta for pages)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionMeta {\n /** Custom entry point name (defaults to export name) */\n entryPoint?: string;\n /** Deployment regions (overrides app defaults) */\n region?: string[];\n /** Platform version */\n platform?: 'gcfv1' | 'gcfv2';\n /** Category label for organization */\n category?: 'auth' | 'crud' | 'analytics' | 'scheduled' | 'webhook' | string;\n /** Additional labels */\n labels?: Record<string, string>;\n /** Trigger type (defaults to 'callable') */\n trigger?: FunctionTrigger;\n /** For scheduled functions - cron expression */\n schedule?: string;\n /** Memory allocation */\n memory?: FunctionMemory;\n /** Timeout in seconds */\n timeoutSeconds?: number;\n /** Minimum instances (for cold start optimization) */\n minInstances?: number;\n /** Maximum instances */\n maxInstances?: number;\n /** Secret environment variable names (synced via sync-secrets, read via defineSecret) */\n secrets?: string[];\n}","FunctionPlatform":"/**\n * Supported function platforms\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionPlatform = 'firebase' | 'vercel' | 'aws' | 'custom';","FunctionResponse":"/**\n * Function response wrapper\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionResponse<T = any> {\n /** Response data */\n data: T;\n /** Whether the call was successful */\n success: boolean;\n /** Error message if any */\n error?: string;\n /** Response metadata */\n metadata?: {\n platform: FunctionPlatform;\n duration: number;\n cached: boolean;\n timestamp: string;\n };\n}","FunctionSchema":"/**\n * Function schema definition\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSchema<TInput = any, TOutput = any> {\n /** Input validation schema */\n input?: v.BaseSchema<unknown, TInput, v.BaseIssue<unknown>>;\n /** Output validation schema */\n output?: v.BaseSchema<unknown, TOutput, v.BaseIssue<unknown>>;\n /** Function name */\n name: string;\n /** Whether this is a public function */\n public?: boolean;\n /** Function description */\n description?: string;\n}","FunctionSchemas":"/**\n * Predefined function schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSchemas {\n /** Auth-related functions */\n auth: {\n getUserProfile: FunctionSchema<{\n userId: string;\n }, Record<string, unknown>>;\n updateUserProfile: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n refreshToken: FunctionSchema<Record<string, never>, Record<string, unknown>>;\n };\n /** Billing-related functions */\n billing: {\n createCheckoutSession: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n refreshSubscriptionStatus: FunctionSchema<Record<string, never>, Record<string, unknown>>;\n processPaymentSuccess: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n };\n /** Generic CRUD functions */\n crud: {\n createEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n updateEntity: FunctionSchema<Record<string, unknown>, Record<string, unknown>>;\n deleteEntity: FunctionSchema<{\n id: string;\n }, Record<string, unknown>>;\n getEntity: FunctionSchema<{\n id: string;\n }, Record<string, unknown>>;\n listEntities: FunctionSchema<Record<string, unknown>, Record<string, unknown>[]>;\n };\n}","FunctionSystem":"/**\n * Complete functions system interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionSystem {\n /** Function client */\n client: FunctionClient;\n /** React Query hooks */\n hooks: {\n useFunctionsQuery: <TData = unknown>(functionName: string, params?: object, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsQueryOptions<TData>) => UseFunctionsQueryResult<TData>;\n useFunctionsMutation: <TData = unknown, TVariables = object>(functionName: string, schema?: v.BaseSchema<unknown, TData, v.BaseIssue<unknown>>, options?: UseFunctionsMutationOptions<TData, TVariables>) => UseFunctionsMutationResult<TData, TVariables>;\n useFunctionsCall: <TData = unknown>(functionName: string, options?: FunctionCallOptions) => UseFunctionsCallResult<TData>;\n };\n /** Direct call function */\n callFunction: FunctionClient['callFunction'];\n}","FunctionTrigger":"/**\n * Function trigger types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FunctionTrigger = 'callable' | 'http' | 'pubsub' | 'firestore' | 'auth' | 'storage' | 'scheduled';","FunctionsConfig":"/**\n * Complete functions configuration for an app\n * @description Single config file pattern for functions.yaml generation\n *\n * @example\n * ```typescript\n * export const functionsConfig: FunctionsConfig = {\n * defaults: {\n * region: ['europe-west1'],\n * platform: 'gcfv2',\n * labels: { app: 'myapp' },\n * },\n * functions: {\n * setCustomClaims: { category: 'auth' },\n * getDashboardMetrics: { category: 'analytics', memory: '512MB' },\n * },\n * crud: {\n * entities: ['car', 'customer', 'inquiry'],\n * },\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FunctionsConfig {\n /** App-level defaults applied to all functions */\n defaults?: FunctionDefaults;\n /** Static functions configuration (non-CRUD) */\n functions?: Record<string, FunctionMeta>;\n /** CRUD auto-generation configuration */\n crud?: CrudConfig;\n}","GetCustomClaimsResponse":"/**\n * Get custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetCustomClaimsResponse {\n claims: Record<string, any>;\n userId: string;\n}","GetEntityData":"/**\n * Data required for getting an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The ID of the entity to get */\n id: string;\n}","GetEntityRequest":"/**\n * Get entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GetEntityRequest = v.InferOutput<typeof getEntitySchema>;","GetEntityResponse":"/**\n * Get entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetEntityResponse {\n success: boolean;\n data: Record<string, any> | null;\n}","GetUserAuthStatusResponse":"/**\n * Get user auth status response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface GetUserAuthStatusResponse {\n userId: string;\n isAuthenticated: boolean;\n customClaims: Record<string, any>;\n hasClaims: boolean;\n claimCount: number;\n}","GitHubPermission":"/**\n * GitHub permission type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GitHubPermission = v.InferOutput<typeof githubPermissionSchema>;","GitHubRepoConfig":"/**\n * GitHub repository configuration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GitHubRepoConfig = v.InferOutput<typeof githubRepoConfigSchema>;","GrantGitHubAccessRequest":"/**\n * TypeScript type exports for GitHub access schemas\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype GrantGitHubAccessRequest = v.InferOutput<typeof grantGitHubAccessSchema>;","GroupByDefinition":"/**\n * Group by definition for aggregation\n *\n * @example\n * ```typescript\n * {\n * field: 'status',\n * metrics: [\n * { field: '*', operation: 'count', as: 'count' },\n * { field: 'price', operation: 'sum', as: 'value' },\n * ]\n * }\n * ```\n */\ninterface GroupByDefinition {\n /** Field to group by */\n field: string;\n /** Metrics to compute per group */\n metrics: MetricDefinition[];\n}","HeaderZoneConfig":"/**\n * Header zone configuration\n *\n * Grid-based layout with start/center/end areas.\n * - start: start-aligned (typically branding: AppIcon, AppTitle)\n * - center: absolutely centered (overlay, regardless of start/end content)\n * - end: end-aligned (typically actions: GoTo, Auth, Language, Theme)\n */\ninterface HeaderZoneConfig {\n /** Start slot - start-aligned, typically branding (AppIcon, AppTitle) */\n start?: SlotContent;\n /** Center slot - absolutely centered overlay, optional (navigation, search) */\n center?: SlotContent;\n /** End slot - end-aligned, typically actions (GoTo, Auth, Language, Theme) */\n end?: SlotContent;\n}","I18nConfig":"/**\n * Interface for configurations to initialize the i18n system\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface I18nConfig {\n /** Patterns for eager namespaces */\n eagerPatterns: string[];\n /** Patterns for lazy namespaces */\n lazyPatterns: string[];\n /** App namespace patterns (eagerly loaded) */\n eagerNamespaces: string[];\n /** Custom namespace patterns for arbitrary use cases (lazily loaded) */\n lazyNamespaces: string[];\n /** Performance options */\n performance: {\n /** Maximum number of translations to keep in memory cache */\n cacheSize: number;\n /** Time to live for cached errors in milliseconds */\n errorCacheTTL: number;\n /** Timeout for loading operations in milliseconds */\n loadTimeout: number;\n };\n /** Language options */\n languages: {\n /** List of supported language codes */\n supported: string[];\n /** Default language code */\n default: string;\n /** Fallback language code */\n fallback: string;\n };\n /** Debug mode flag */\n debug: boolean;\n /** Protocol name for virtual loader (default: 'virtual') */\n virtualProtocol: string;\n /** Additional i18next initialization options */\n i18nextOptions: Partial<InitOptions>;\n /** Force production mode */\n forceProduction: boolean;\n /** Force development mode */\n forceDevelopment: boolean;\n}","I18nPluginConfig":"/**\n * i18n Plugin Configuration\n * @description Configuration for internationalization system\n */\ninterface I18nPluginConfig {\n /** Mapping of language → namespace → loader function */\n mapping: Record<string, Record<string, () => Promise<any>>>;\n /** List of available language codes */\n languages: string[];\n /** List of eagerly loaded namespace identifiers */\n eager: string[];\n /** Fallback language code */\n fallback: string;\n /** Preloaded translation content for eager namespaces (optional) */\n content?: Record<string, Record<string, any>>;\n /** Lazy loader functions — static import() calls generated by Vite plugin (optional, not serializable) */\n loaders?: Record<string, Record<string, () => Promise<any>>>;\n /** Storage configuration */\n storage: {\n /** Storage backend type */\n type: StorageType;\n /** Storage key prefix */\n prefix: string;\n /** Time-to-live in seconds */\n ttl: number;\n /** Whether to encrypt stored data */\n encryption: boolean;\n /** Maximum storage size in bytes */\n maxSize: number;\n };\n /** Performance configuration */\n performance: {\n /** Maximum cache size */\n cacheSize: number;\n /** Error cache TTL in seconds */\n errorCacheTTL: number;\n };\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of translation files */\n totalFiles: number;\n /** Total number of namespaces */\n totalNamespaces: number;\n /** Total number of languages */\n totalLanguages: number;\n /** Number of eagerly loaded namespaces */\n eagerNamespaces: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n /** Whether debug mode is enabled */\n debug: boolean;\n}","I18nProviderProps":"/**\n * Props for the I18nProvider component\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface I18nProviderProps {\n /** Child components to render */\n children: ReactNode;\n /** Initial configuration */\n config?: Partial<I18nConfig>;\n /** Initial language to use */\n fallbackLng?: string;\n /** Pre-initialized i18n instance */\n i18n?: any;\n /** Optional callback when i18n initialization completes */\n onInitialized?: (i18n: any) => void;\n /** Health monitoring flag (defaults to true) */\n healthMonitoring?: boolean;\n /** Loading component to display while initializing */\n loadingComponent?: ReactNode;\n /** Error component to display if initialization fails */\n errorComponent?: ReactNode;\n}","ICallableProvider":"/**\n * Provider-agnostic interface for calling server-side functions.\n *\n * @example\n * ```typescript\n * const callable: ICallableProvider = new SupabaseCallableProvider(client);\n * const result = await callable.call<{ userId: string }, { success: boolean }>(\n * 'delete-account',\n * { userId: '123' }\n * );\n * ```\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface ICallableProvider {\n call<TReq, TRes>(functionName: string, data: TReq): Promise<TRes>;\n}","ICrudAdapter":"/**\n * Provider-agnostic CRUD adapter interface.\n *\n * Implementations:\n * - `FirestoreAdapter` (Firestore direct)\n * - `FunctionsAdapter` (Firebase callable functions)\n * - Future: Supabase, REST, Postgres adapters\n *\n * @template All methods accept `dndevSchema` for validation/transformation.\n * Adapters that don't need schema can ignore it.\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface ICrudAdapter {\n /**\n * When true, this adapter enforces field-level security server-side.\n * Only server-side adapters may access entities with restricted field visibility.\n * Defaults to false (direct/client-side adapters).\n */\n readonly serverSideOnly?: boolean;\n /**\n * When true, field-level and row-level security is enforced at the database layer\n * (e.g. Supabase RLS + column grants). The framework visibility gate is bypassed\n * because the DB rejects unauthorized reads before any data leaves the server.\n *\n * **Supabase:** requires RLS enabled on every table + column-level grants per role.\n * **Firestore:** Rules are row-level only — field-level filtering needs FunctionsAdapter.\n */\n readonly dbLevelSecurity?: boolean;\n /**\n * A view of this adapter whose reads run as the holder of `accessToken` (the\n * visitor's session during the server render). Only for adapters whose backend\n * verifies the token itself (`dbLevelSecurity`), so a forged token reads nothing.\n * Absent: the server render does not prefetch signed-in visitors' data.\n */\n forAccessToken?(accessToken: string): ICrudAdapter;\n /** Fetch a single document by ID. Returns null if not found. */\n get<T>(collection: string, id: string, schema?: dndevSchema<unknown>, options?: CrudOperationOptions): Promise<T | null>;\n /** Create a new document with auto-generated ID. Returns the ID + parsed data. */\n add<T>(collection: string, data: T, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<{\n id: string;\n data: Record<string, unknown>;\n }>;\n /**\n * Execute a bulk transactional operation.\n * - All ops commit atomically. One transaction/writeBatch.\n * - One round-trip where the transport supports it.\n * - Empty ops returns a zeroed BulkResult without wire contact.\n * - Throws on partial failure; never leaves store in mixed state.\n *\n * @example\n * const r = await adapter.bulk('events', { inserts: [{ title: 'A' }], deletes: ['x'] });\n * r.insertedIds; r.deletedIds;\n */\n bulk<T extends Record<string, unknown>>(collection: string, ops: BulkOperations<T>, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<BulkResult>;\n /** Set/replace a document by ID (upsert semantics). */\n set<T>(collection: string, id: string, data: T, schema?: dndevSchema<T>, options?: CrudOperationOptions): Promise<void>;\n /** Partial update a document by ID. */\n update<T>(collection: string, id: string, data: Partial<T>, options?: CrudOperationOptions): Promise<void>;\n /** Delete a document by ID. */\n delete(collection: string, id: string, options?: CrudOperationOptions): Promise<void>;\n /** Query a collection with filters, ordering, and pagination. schemaType accepts 'list' | 'listCard' or string. */\n query<T>(collection: string, options: QueryOptions, schema?: dndevSchema<unknown>, schemaType?: ListSchemaType | string, operationOptions?: CrudOperationOptions): Promise<PaginatedQueryResult<T>>;\n /**\n * Subscribe to real-time changes on a single document.\n * Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.\n */\n subscribe?<T>(collection: string, id: string, callback: DocumentSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;\n /**\n * Subscribe to real-time changes on a collection query.\n * Optional — adapters that don't support real-time can throw or return a no-op unsubscribe.\n */\n subscribeToCollection?<T>(collection: string, options: QueryOptions, callback: CollectionSubscriptionCallback<T>, schema?: dndevSchema<unknown>): () => void;\n}","ID":"/**\n * Generic ID type used throughout the application\n * @description Currently a string, but typed for future flexibility\n */\ntype ID = string;","INetworkManager":"/**\n * Network manager interface for observing and controlling network status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface INetworkManager {\n /** Get the current network status */\n getStatus(): NetworkStatus;\n /**\n * Observe network status changes\n * @returns An observable of NetworkStatus updates\n */\n observeStatus(): Observable<NetworkStatus>;\n /**\n * Register a callback for reconnection events\n * @param callback Function to execute when network reconnects\n * @returns Unsubscribe function\n */\n onReconnect(callback: NetworkReconnectCallback): () => void;\n /**\n * Manually check connectivity\n * @param url Optional custom URL to check\n * @returns Promise resolving to true if online, false otherwise\n */\n checkConnectivity(url?: string): Promise<boolean>;\n /** Clean up resources */\n destroy(): void;\n}","IServerAuthAdapter":"/**\n * Provider-agnostic server-side auth adapter.\n *\n * Implementations:\n * - `FirebaseServerAuthAdapter` (Firebase Admin SDK)\n * - Future: Supabase server auth, Auth.js, custom JWT adapters\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface IServerAuthAdapter {\n /** Verify an auth token and return the decoded user info. Throws on invalid token. */\n verifyToken(token: string): Promise<VerifiedToken>;\n /** Get a user record by UID. Returns null if not found. */\n getUser(uid: string): Promise<ServerUserRecord | null>;\n /** Set custom claims on a user (merge semantics — existing claims are preserved unless overwritten). */\n setCustomClaims(uid: string, claims: Record<string, unknown>): Promise<void>;\n}","IStorageAdapter":"/**\n * Provider-agnostic storage adapter interface.\n *\n * Implementations:\n * - `FirebaseStorageAdapter` (Firebase Storage)\n * - Future: S3, Cloudflare R2, Supabase Storage adapters\n *\n * @version 0.1.0\n * @since 0.5.0\n */\ninterface IStorageAdapter {\n /** Upload a file or blob to storage. Returns the public URL and storage path. */\n upload(file: File | Blob, options?: UploadOptions): Promise<UploadResult>;\n /** Delete a file by its URL or storage path. */\n delete(urlOrPath: string, options?: {\n signal?: AbortSignal;\n }): Promise<void>;\n /** Get the public download URL for a storage path. */\n getUrl(path: string): Promise<string>;\n}","IStorageManager":"/**\n * Storage manager interface\n * @description Main interface for all storage operations\n */\ninterface IStorageManager {\n /**\n * Retrieve data from storage\n * @param key - Storage key\n * @param options - Storage options\n * @returns Promise resolving to the stored data or null if not found\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options\n * @returns Promise resolving when data is stored\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n * @param key - Storage key\n * @returns Promise resolving when data is removed\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n * @param scope - Scope to clear, or all scopes if not specified\n * @returns Promise resolving when data is cleared\n */\n clear(scope?: StorageScope): Promise<void>;\n /**\n * Store sensitive data with encryption\n * @description Shorthand for set() with encryption=true\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options (encryption will be set to true)\n * @returns Promise resolving when data is stored\n */\n setSecure<T>(key: string, value: T, options?: Omit<StorageOptions, 'encryption'>): Promise<void>;\n /**\n * Retrieve sensitive data with decryption\n * @description Shorthand for get() with encryption=true\n * @param key - Storage key\n * @param options - Storage options (encryption will be set to true)\n * @returns Promise resolving to the decrypted data or null if not found\n */\n getSecure<T>(key: string, options?: Omit<StorageOptions, 'encryption'>): Promise<T | null>;\n}","IStorageStrategy":"/**\n * Storage strategy interface\n * @description Used by StorageManager to delegate storage operations\n */\ninterface IStorageStrategy {\n /**\n * Retrieve data from storage\n * @param key - Storage key\n * @param options - Storage options\n * @returns Promise resolving to the stored data or null if not found\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n * @param key - Storage key\n * @param value - Data to store\n * @param options - Storage options\n * @returns Promise resolving when data is stored\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n * @param key - Storage key\n * @returns Promise resolving when data is removed\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n * @param scope - Scope to clear, or all scopes if not specified\n * @returns Promise resolving when data is cleared\n */\n clear(scope?: StorageScope): Promise<void>;\n}","InferEntityRow":"/**\n * Inferred document row for an entity. Always includes `id` so rows are valid for\n * lists, keys, and `Record<string, any>`-shaped component props even when `E` is\n * the widened {@link AnyEntity} (`fields` is only a string index signature).\n */\ntype InferEntityRow<E extends AnyEntity> = EntityRowFromFields<E['fields']> & {\n id: string;\n}","Invoice":"/** Invoice interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Invoice {\n id: string;\n userId: string;\n amount: number;\n currency: string;\n status: 'draft' | 'open' | 'paid' | 'void' | 'uncollectible';\n createdAt: string;\n dueDate?: string;\n paidAt?: string;\n description?: string;\n items: InvoiceItem[];\n}","InvoiceItem":"/**\n * Invoice item interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface InvoiceItem {\n id: string;\n description: string;\n amount: number;\n quantity: number;\n unitPrice: number;\n}","LanguageData":"/**\n * Language data type — single source of truth for language metadata.\n * Used by i18n constants, language store, and language selector components.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageData {\n /** BCP-47 language code (e.g., 'en', 'fr', 'ar-ma') */\n id: string;\n /** English display name */\n name: string;\n /** Native script display name */\n nativeName: string;\n /** Override flag code when it differs from the language id */\n flagCode?: string;\n /** ISO 3166-1 alpha-2 country code */\n countryCode?: string;\n /** International dialing code (e.g., '+33') */\n dialCode?: string;\n /** Human-readable country name for display labels */\n countryName?: string;\n}","LanguageInfo":"/**\n * Interface for language information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageInfo$1 {\n /** ISO 639-1 language code (e.g., 'en', 'fr') */\n code: string;\n /** Native name of the language (e.g., 'English', 'Français') */\n name: string;\n}","LayoutConfig":"/**\n * Layout configuration - simple API for consumers\n *\n * @example\n * ```typescript\n * layout={{\n * preset: 'admin',\n * header: { end: () => <MyButton /> }\n * }}\n * ```\n */\ninterface LayoutConfig {\n /** Breadcrumbs display behavior */\n breadcrumbs?: 'smart' | 'always' | 'never';\n /**\n * Footer scroll behavior\n * - 'fixed': Footer stays at viewport bottom (default on desktop)\n * - 'scroll': Footer scrolls with content (default on mobile, optional on desktop)\n */\n footerMode?: FooterMode;\n /** Header override - full component or slot overrides */\n header?: DnDevOverride | {\n start?: DnDevOverride;\n center?: DnDevOverride;\n end?: DnDevOverride;\n };\n /** Footer override - full component only */\n footer?: DnDevOverride;\n /** Sidebar override - full component or slot overrides */\n sidebar?: DnDevOverride | {\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n /** MergedBar override - full component or slot overrides */\n mergedbar?: DnDevOverride | {\n trigger?: DnDevOverride;\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n /**\n * Main content wrapper — wraps page content inside `<main>`\n *\n * Add custom chrome around page content (split panes, floating panels,\n * terminal docking) without modifying the framework layout.\n * Breadcrumbs, debug tools, and footer remain outside the wrapper.\n *\n * Works with both Vite and Next.js routing.\n *\n * @example\n * ```tsx\n * layout={{\n * wrapper: ({ children }) => (\n * <SplitLayout terminal={<Terminal />}>{children}</SplitLayout>\n * ),\n * }}\n * ```\n */\n wrapper?: DnDevWrapper;\n /** Mobile-specific overrides */\n mobile?: {\n /** Mobile header slot overrides (overrides desktop header on mobile) */\n header?: {\n start?: DnDevOverride;\n center?: DnDevOverride;\n end?: DnDevOverride;\n };\n /** Mobile sidebar slot overrides (overrides desktop sidebar on mobile) */\n sidebar?: {\n top?: DnDevOverride;\n content?: DnDevOverride;\n bottom?: DnDevOverride;\n };\n };\n}","LayoutPreset":"/**\n * Layout preset type - auto-derived from constants, with string fallback\n * Accepts known presets OR any string (runtime validates and defaults to 'landing')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype LayoutPreset = (typeof LAYOUT_PRESET)[keyof typeof LAYOUT_PRESET] | string;","LegalCompanyInfo":"/**\n * Company/Publisher Information\n *\n * Information about the company or individual publishing the website\n */\ninterface LegalCompanyInfo {\n /**\n * Full legal name of the company or individual\n * @example \"AMBROISE PARK Consulting\"\n * @example \"John Doe\"\n */\n name: string;\n /**\n * Short name or abbreviation\n * @example \"APC\"\n * @example \"ACME Inc.\"\n */\n shortName?: string;\n /**\n * Legal status/form of the company\n * @example \"SARL\" (France - Limited Liability Company)\n * @example \"SAS\" (France - Simplified Joint-Stock Company)\n * @example \"LLC\" (USA - Limited Liability Company)\n * @example \"GmbH\" (Germany)\n * @example \"Ltd\" (UK)\n */\n legalStatus?: string;\n /**\n * Company registration number\n * @description Required in many countries for legal compliance\n * @example \"123 456 789 00010\" (France - SIRET number)\n * @example \"12345678\" (UK - Company Number)\n * @example \"123-45-6789\" (USA - EIN)\n */\n registrationNumber?: string;\n /**\n * VAT/Tax identification number\n * @description Required for EU businesses and many other jurisdictions\n * @example \"FR12345678901\" (France)\n * @example \"DE123456789\" (Germany)\n * @example \"GB123456789\" (UK)\n */\n vatNumber?: string;\n /**\n * Share capital (for companies)\n * @description Required to be disclosed in some jurisdictions (e.g., France)\n * @example \"10,000 EUR\"\n * @example \"50,000 USD\"\n */\n shareCapital?: string;\n}","LegalConfig":"/**\n * Complete Legal Configuration\n *\n * @description\n * Centralized configuration for all legal pages (Terms, Privacy, Legal Notice).\n * Configure this once in your app's config/legal.ts file.\n *\n * @example\n * ```typescript\n * import type { LegalConfig } from '@donotdev/types';\n *\n * export const legalConfig: LegalConfig = {\n * company: {\n * name: 'ACME Corporation',\n * legalStatus: 'LLC',\n * registrationNumber: '123456789',\n * vatNumber: 'US123456789',\n * },\n * contact: {\n * address: '123 Main St, City, State 12345, Country',\n * email: 'legal@acme.com',\n * supportEmail: 'support@acme.com',\n * privacyEmail: 'privacy@acme.com',\n * dpoEmail: 'dpo@acme.com',\n * },\n * director: {\n * name: 'John Doe',\n * role: 'CEO',\n * },\n * hosting: {\n * provider: 'Firebase Hosting by Google',\n * contact: 'https://firebase.google.com/support',\n * },\n * jurisdiction: {\n * country: 'United States',\n * },\n * website: {\n * url: 'https://acme.com',\n * },\n * };\n * ```\n */\ninterface LegalConfig {\n /** Company/Publisher information */\n company: LegalCompanyInfo;\n /** Contact information */\n contact: LegalContactInfo;\n /** Publication director information */\n director: LegalDirectorInfo;\n /** Hosting provider information */\n hosting: LegalHostingInfo;\n /** Legal jurisdiction information */\n jurisdiction: LegalJurisdictionInfo;\n /** Website information */\n website: LegalWebsiteInfo;\n /** Sections configuration for legal pages */\n sections: LegalSectionsConfig;\n /** Last updated dates (ISO strings) for each legal page */\n lastUpdated?: {\n /** Terms of Service last updated date (ISO string) */\n terms?: string;\n /** Privacy Policy last updated date (ISO string) */\n privacy?: string;\n /** Legal Notice last updated date (ISO string) */\n legalNotice?: string;\n };\n}","LegalContactInfo":"/**\n * Contact Information\n *\n * Various contact points for legal, support, and privacy inquiries\n */\ninterface LegalContactInfo {\n /**\n * Registered office address\n * @description Physical address where the company is legally registered\n * @example \"123 rue de la Paix, 75001 Paris, France\"\n * @example \"1 Main Street, Suite 100, New York, NY 10001, USA\"\n */\n address: string;\n /**\n * General legal contact email\n * @description For legal inquiries and notices\n * @example \"legal@company.com\"\n */\n email: string;\n /**\n * Contact phone number\n * @description Optional but recommended for legal compliance\n * @example \"+33 1 23 45 67 89\"\n * @example \"+1 (555) 123-4567\"\n */\n phone?: string;\n /**\n * Support email for customer inquiries\n * @example \"support@company.com\"\n */\n supportEmail: string;\n /**\n * Privacy-specific email\n * @description For privacy policy and data protection inquiries\n * @example \"privacy@company.com\"\n */\n privacyEmail: string;\n /**\n * Data Protection Officer (DPO) email\n * @description Required for GDPR compliance if you process significant personal data\n * @example \"dpo@company.com\"\n */\n dpoEmail: string;\n}","LegalDirectorInfo":"/**\n * Publication Director Information\n *\n * Information about the person responsible for the website's content\n * Required by law in France (\"Directeur de la publication\")\n */\ninterface LegalDirectorInfo {\n /**\n * Full name of the publication director\n * @description The person legally responsible for the website's content\n * @example \"John Doe\"\n * @example \"Jane Smith\"\n */\n name: string;\n /**\n * Role/title of the publication director\n * @example \"CEO\"\n * @example \"Directeur Général\"\n * @example \"Managing Director\"\n */\n role?: string;\n}","LegalHostingInfo":"/**\n * Hosting Provider Information\n *\n * Information about where and how the website is hosted\n * Required by law in many jurisdictions including France\n */\ninterface LegalHostingInfo {\n /**\n * Name of the hosting provider\n * @example \"Firebase Hosting by Google\"\n * @example \"AWS (Amazon Web Services)\"\n * @example \"OVH\"\n */\n provider: string;\n /**\n * Hosting provider's address\n * @description Physical address of the hosting company\n * @example \"Google LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA\"\n */\n address?: string;\n /**\n * Hosting provider contact information\n * @description URL or email to contact the hosting provider\n * @example \"https://firebase.google.com/support\"\n * @example \"support@hostingprovider.com\"\n */\n contact?: string;\n}","LegalJurisdictionInfo":"/**\n * Legal Jurisdiction Information\n *\n * Information about the legal jurisdiction and dispute resolution\n */\ninterface LegalJurisdictionInfo {\n /**\n * Country or jurisdiction where the company operates\n * @example \"France\"\n * @example \"United States\"\n * @example \"United Kingdom\"\n */\n country: string;\n /**\n * Arbitration organization for dispute resolution\n * @example \"Centre de Médiation et d'Arbitrage de Paris\"\n * @example \"American Arbitration Association\"\n * @example \"International Chamber of Commerce\"\n */\n arbitrationOrg?: string;\n /**\n * Location where arbitration would take place\n * @example \"Paris, France\"\n * @example \"New York, NY\"\n */\n arbitrationLocation?: string;\n}","LegalSectionsConfig":"/**\n * Optional Sections Configuration for Legal Pages\n */\ninterface LegalSectionsConfig {\n /**\n * Terms of Service optional sections\n */\n terms?: {\n /** Include children-specific provisions (COPPA, etc.) */\n children?: boolean;\n /** Include international users provisions */\n international?: boolean;\n /** Include California-specific provisions (CCPA, etc.) */\n california?: boolean;\n /** Include EU-specific provisions */\n eu?: boolean;\n };\n /**\n * Privacy Policy optional sections\n */\n privacy?: {\n /** Include children's privacy provisions (COPPA, etc.) */\n children?: boolean;\n /** Include international data transfer provisions */\n international?: boolean;\n /** Include California privacy rights (CCPA, etc.) */\n california?: boolean;\n /** Include EU privacy provisions (GDPR) */\n eu?: boolean;\n };\n /**\n * Legal Notice optional sections\n */\n legalNotice?: {\n /** Include intellectual property notice */\n intellectualProperty?: boolean;\n /** Include personal data reference/link to privacy policy */\n personalData?: boolean;\n /** Include cookies reference/link to privacy policy */\n cookies?: boolean;\n };\n}","LegalWebsiteInfo":"/**\n * Website Information\n */\ninterface LegalWebsiteInfo {\n /**\n * Main website URL\n * @example \"https://company.com\"\n * @example \"https://www.example.com\"\n */\n url: string;\n}","ListCardLayout":"/**\n * Slot-based card layout for listCardFields.\n * Maps entity field names to card slots (title, subtitle, content, footer).\n */\ninterface ListCardLayout {\n /** Fields rendered as the card title (joined with titleSeparator) */\n title?: string[];\n /**\n * Separator used to join multiple title field values.\n * @default ' '\n * @example `titleSeparator: ' - '` → \"Paris 20e arr. - 20m²\"\n */\n titleSeparator?: string;\n /** Fields rendered as the card subtitle */\n subtitle?: string[];\n /** Fields rendered in the card body (supports images) */\n content?: string[];\n /** Fields rendered in the card footer */\n footer?: string[];\n}","ListEntitiesRequest":"/**\n * List entities request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ListEntitiesRequest = v.InferOutput<typeof listEntitiesSchema>;","ListEntitiesResponse":"/**\n * List entities response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListEntitiesResponse {\n success: boolean;\n data: Record<string, any>[];\n total: number;\n hasMore: boolean;\n}","ListEntityData":"/**\n * Data required for listing entities\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListEntityData<T extends Record<string, any>> extends ListOptions {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n}","ListOptions":"/**\n * Options for listing operations.\n * Used to customize the behavior of list hooks.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListOptions {\n /** The page number (1-indexed) to fetch */\n page?: number;\n /** The number of items per page */\n pageSize?: number;\n /** Filters to apply to the list */\n filters?: Record<string, any>;\n /** Sorting options */\n sort?: {\n /** The field to sort by */\n field: string;\n /** The direction to sort in */\n direction: 'asc' | 'desc';\n };\n}","ListResponse":"/**\n * Standard response for list operations.\n * Used by list hooks to return paginated data.\n * @template T - The type of items in the list\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ListResponse<T> {\n /** The items in the current page */\n items: T[];\n /** The total number of items across all pages */\n total: number;\n /** The current page number */\n page: number;\n /** The number of items per page */\n pageSize: number;\n /** Whether there are more pages to fetch */\n hasMore: boolean;\n}","ListSchemaType":"/** Schema variant for list queries (table vs card grid). */\ntype ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];","LoadingActions":"/**\n * Loading actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LoadingActions {\n /** Set the loading state */\n setLoading: (isLoading: boolean) => void;\n /** Set the fetching state */\n setFetching: (isFetching: boolean) => void;\n}","LoadingState":"/**\n * Loading state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LoadingState {\n /** Whether a data fetch operation is in progress */\n isLoading: boolean;\n /** Whether a background fetch operation is in progress */\n isFetching: boolean;\n}","MergedBarConfig":"/**\n * MergedBar configuration for mobile\n *\n * Fixed trigger bar that opens a Sheet with navigation content.\n * Each slot is customizable per-preset, with smart defaults.\n */\ninterface MergedBarConfig {\n /** Position of the trigger bar */\n position: 'top' | 'bottom';\n /** Height of the trigger bar (default: 64px for top, 48px for bottom) */\n height?: string;\n /** Trigger bar content (default: header.start for top, footer-like for bottom) */\n trigger?: SlotContent;\n /** Sheet top slot */\n top?: SlotContent;\n /** Sheet content slot - scrollable (default: sidebar.content) */\n content?: SlotContent;\n /** Sheet bottom slot (default: sidebar.bottom) */\n bottom?: SlotContent;\n}","MergedEntityFieldMap":"/**\n * Consumer `fields` merged with {@link BaseEntityFields} — same keys {@link defineEntity} returns.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype MergedEntityFieldMap<F extends Record<string, EntityField>> = F & BaseEntityFields;","MetricDefinition":"/**\n * Single metric definition for aggregation\n *\n * @example\n * ```typescript\n * // Count all documents\n * { field: '*', operation: 'count', as: 'total' }\n *\n * // Sum a numeric field\n * { field: 'price', operation: 'sum', as: 'totalValue' }\n *\n * // Count with filter\n * {\n * field: '*',\n * operation: 'count',\n * as: 'availableCount',\n * filter: { field: 'status', operator: '==', value: 'available' }\n * }\n * ```\n */\ninterface MetricDefinition {\n /** Field to aggregate ('*' for count all) */\n field: string;\n /** Aggregation operation */\n operation: AggregateOperation;\n /** Output name for this metric */\n as: string;\n /** Optional filter for this metric */\n filter?: {\n field: string;\n operator: AggregateFilterOperator;\n value: any;\n };\n}","MobileBehaviorConfig":"/**\n * Mobile behavior configuration\n *\n * Defines how the layout adapts on mobile/tablet breakpoints.\n */\ninterface MobileBehaviorConfig {\n /** Breakpoint at which mobile behavior activates (default: 1024px) */\n breakpoint?: number;\n /** Header slot overrides for mobile (overrides desktop header slots) */\n header?: HeaderZoneConfig;\n /** Sidebar slot overrides for mobile (overrides desktop sidebar slots) */\n sidebar?: SidebarZoneConfig;\n /** MergedBar configuration - replaces header/footer with sheet trigger */\n mergedBar?: MergedBarConfig;\n}","ModalActions":"/**\n * Modal actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ModalActions {\n /** Open the modal with content */\n openModal: (content: ReactNode) => void;\n /** Close the modal */\n closeModal: () => void;\n}","ModalState":"/**\n * Modal state and actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ModalState {\n /** Whether the modal is currently open */\n isOpen: boolean;\n /** Modal content */\n content: ReactNode | null;\n}","MutableMergedEntityFieldMap":"/**\n * Merged field map with `readonly` stripped from keys — improves assignability of\n * `defineEntity` results to widened {@link AnyEntity} props.\n *\n * @version 0.1.0\n * @since 0.2.0\n */\ntype MutableMergedEntityFieldMap<F extends Record<string, EntityField>> = {\n -readonly [K in keyof MergedEntityFieldMap<F>]: MergedEntityFieldMap<F>[K];\n}","MutationResponse":"/**\n * Standard response for mutations.\n * Used by create, update, and delete hooks to return the result of the operation.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface MutationResponse {\n /** The ID of the affected entity */\n id: string;\n /** Additional fields that may be returned by the mutation */\n [key: string]: any;\n}","NavigationRoute":"/**\n * Navigation route interface\n * @description Single source of truth for all navigation routes\n */\ninterface NavigationRoute {\n /** Route path */\n path: string;\n /** Display label for navigation */\n label: string;\n /** Optional icon identifier or component */\n icon?: string | ReactNode;\n /** Whether route is external */\n external?: boolean;\n /** Whether route is disabled */\n disabled?: boolean;\n /** Badge content for notifications */\n badge?: string | number;\n /** Authentication configuration */\n auth?: PageAuth;\n /** Route metadata (includes auto-discovered fields) */\n meta?: RouteMeta;\n /** Nested child routes */\n children?: NavigationRoute[];\n}","NetworkCheckConfig":"/**\n * Configuration options for the NetworkManager.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkCheckConfig {\n /**\n * URL to ping (using a HEAD request) to verify actual internet connectivity.\n * Defaults to a reliable Google endpoint. Set to null or empty string to disable pinging.\n * @default \"https://www.gstatic.com/generate_204\"\n */\n pingEndpoint?: string | null;\n /**\n * Timeout in milliseconds for the ping request.\n * @default 5000\n */\n pingTimeout?: number;\n /**\n * Interval in milliseconds for periodically checking network connectivity via ping.\n * @default 30000 (30 seconds)\n */\n checkInterval?: number;\n /**\n * Debounce time in milliseconds for processing browser online/offline events\n * to avoid rapid status fluctuations.\n * @default 300\n */\n debounceTime?: number;\n}","NetworkConnectionType":"/**\n * Possible network connection types based on the Network Information API\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype NetworkConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'none' | 'wifi' | 'wimax' | 'other' | 'unknown';","NetworkReconnectCallback":"/**\n * Function signature for network reconnection callbacks\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype NetworkReconnectCallback = () => void;","NetworkState":"/**\n * Network state specifically for store usage\n * Variant of NetworkStatus with string timestamp for serialization\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkState$1 {\n /** Whether the device is currently online */\n online: boolean;\n /**\n * Type of network connection if available\n * Uses the full range of network connection types from the Network Information API\n */\n connectionType: NetworkConnectionType;\n /**\n * The effective connection type based on measured performance.\n * Based on the Network Information API, might be 'unknown' if unavailable.\n */\n effectiveType?: EffectiveConnectionType | string;\n /** ISO date string of when network status was last checked */\n lastChecked: string;\n}","NetworkStatus":"/**\n * Represents the network connectivity status.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkStatus {\n /**\n * Indicates whether the device has an active internet connection.\n * This is the primary status that authentication and other critical systems should check.\n */\n online: boolean;\n /**\n * The general type of the current network connection.\n * Based on the Network Information API.\n */\n connectionType: NetworkConnectionType;\n /**\n * The effective connection type based on measured performance.\n * Based on the Network Information API, might be 'unknown' if unavailable.\n */\n effectiveType?: EffectiveConnectionType | string;\n /** The timestamp when the network status was last checked or updated. */\n lastChecked: Date;\n}","NetworkStatusHookResult":"/**\n * Result type for the useNetworkStatus hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NetworkStatusHookResult {\n online: boolean;\n connectionType: string;\n}","OAuthAPI":"/**\n * OAuth API type - complete interface for useOAuth hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthAPI {\n /**\n * Unified feature status - single source of truth for OAuth state.\n * Replaces deprecated `loading` boolean flag.\n * - `initializing`: OAuth is loading/initializing\n * - `ready`: OAuth fully operational\n * - `degraded`: OAuth unavailable (feature not installed/consent not given)\n * - `error`: OAuth encountered error\n */\n status: FeatureStatus;\n error: string | null;\n partners: Record<OAuthPartnerId, any>;\n connectedPartners: OAuthPartnerId[];\n connect: (partnerId: OAuthPartnerId, options?: ConnectOptions) => Promise<void>;\n disconnect: (partnerId: OAuthPartnerId) => Promise<void>;\n isConnected: (partnerId: OAuthPartnerId) => boolean;\n getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;\n handleCallback: (partnerId: OAuthPartnerId, code: string, state?: string) => Promise<void>;\n isAvailable: boolean;\n}","OAuthApiRequestOptions":"/**\n * OAuth API request options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthApiRequestOptions extends RequestInit {\n autoRefresh?: boolean;\n requireConnection?: boolean;\n}","OAuthCallbackHookResult":"/**\n * OAuth callback hook result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthCallbackHookResult {\n isCallback: boolean;\n processing: boolean;\n result: OAuthResult | null;\n partnerName: string | null;\n success: boolean;\n error: Error | null;\n}","OAuthConnection":"/**\n * OAuth connection interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnection {\n partnerId: OAuthPartnerId;\n status: OAuthConnectionStatus;\n connectedAt?: Date;\n lastError?: string;\n userData?: any;\n lastTokenUpdate?: Date;\n}","OAuthConnectionInfo":"/**\n * OAuth connection info interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnectionInfo {\n id: string;\n userId: string;\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n connected: boolean;\n createdAt: string;\n updatedAt: string;\n lastUsed?: string;\n credentials?: OAuthCredentials;\n profile?: BaseUserProfile;\n}","OAuthConnectionRequest":"/**\n * OAuth connection request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthConnectionRequest {\n provider: OAuthPartnerId;\n purpose: OAuthPurpose;\n credentials: OAuthCredentials;\n profile?: BaseUserProfile;\n}","OAuthConnectionStatus":"/**\n * OAuth connection status type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error' | 'expired';","OAuthCredentials":"/**\n * OAuth credentials interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthCredentials extends BaseCredentials {\n accessToken: string;\n refreshToken?: string;\n idToken?: string;\n tokenType?: string;\n expiresIn?: number;\n}","OAuthEventData":"/**\n * OAuth event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthEventData {\n userId?: string;\n partnerId?: string;\n token?: string;\n error?: any;\n timestamp: Date;\n metadata?: Record<string, any>;\n}","OAuthEventKey":"/**\n * Type for OAuth event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthEventKey = keyof typeof OAUTH_EVENTS;","OAuthEventName":"/**\n * Type for OAuth event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthEventName = (typeof OAUTH_EVENTS)[OAuthEventKey];","OAuthPartner":"/**\n * OAuth partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPartner = (typeof OAUTH_PARTNERS)[OAuthPartnerId];","OAuthPartnerHookResult":"/**\n * OAuth partner hook result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerHookResult {\n partnerState: OAuthPartnerState;\n isConnecting: boolean;\n isConnected: boolean;\n error: Error | null;\n credentials: OAuthCredentials | null;\n connect: (options?: {\n purpose?: OAuthPurpose;\n redirectUri?: string;\n scopes?: string[];\n additionalParams?: Record<string, string>;\n onSuccess?: (result: OAuthPartnerResult) => void;\n onError?: (error: Error) => void;\n }) => Promise<void>;\n disconnect: () => Promise<boolean>;\n refreshToken: () => Promise<OAuthCredentials | null>;\n request: <T = any>(url: string, options?: OAuthApiRequestOptions) => Promise<T>;\n}","OAuthPartnerId":"/**\n * OAuth partner ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPartnerId = keyof typeof OAUTH_PARTNERS;","OAuthPartnerResult":"/**\n * OAuth partner result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerResult extends PartnerResult {\n partnerId: OAuthPartnerId;\n purpose: OAuthPurpose;\n credentials?: OAuthCredentials;\n}","OAuthPartnerState":"/**\n * OAuth partner state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthPartnerState extends PartnerConnectionState {\n partnerId: OAuthPartnerId;\n config: OAuthPartner;\n credentials: OAuthCredentials | null;\n}","OAuthPurpose":"/**\n * OAuth purpose type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthPurpose = 'authentication' | 'api-access';","OAuthRedirectOperation":"/**\n * OAuth partner redirect operations - DRY derived from OAUTH_PARTNERS schema\n * Format: `oauth-api-${partnerId}` for API-only OAuth partners\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthRedirectOperation = `oauth-api-${OAuthPartnerId}","OAuthRefreshRequest":"/**\n * OAuth refresh request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthRefreshRequest {\n provider: OAuthPartnerId;\n refreshToken: string;\n redirectUri: string;\n}","OAuthRefreshResponse":"/**\n * OAuth refresh response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthRefreshResponse {\n access_token: string;\n token_type?: string;\n expires_in?: number;\n refresh_token?: string;\n scope?: string;\n}","OAuthResult":"/**\n * OAuth result type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OAuthResult = {\n success: true;\n partner: string;\n accessToken: string;\n refreshToken?: string;\n idToken?: string;\n expiresIn?: number;\n scope?: string;\n tokenType?: string;\n profile?: Record<string, any>;\n}","OAuthStoreActions":"/**\n * OAuth store actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthStoreActions {\n setLoading: (loading: boolean) => void;\n setGlobalError: (error: Error | null) => void;\n reset: () => void;\n isConnected: (partnerId: OAuthPartnerId, purpose?: OAuthPurpose) => boolean;\n getCredentials: (partnerId: OAuthPartnerId) => OAuthCredentials | null;\n}","OAuthStoreState":"/**\n * OAuth store state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface OAuthStoreState {\n connections: Record<OAuthPartnerId, OAuthPartnerState>;\n loading: boolean;\n error: Error | null;\n}","Observable":"/**\n * Generic observable interface to avoid circular dependencies\n * This allows us to define the interface without depending on Subject implementation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Observable<T> {\n subscribe: (next: (value: T) => void, error?: (error: any) => void, complete?: () => void) => {\n unsubscribe: () => void;\n };\n}","OrderByClause":"/**\n * Firestore orderBy clause tuple\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OrderByClause = [string, 'asc' | 'desc'];","OrderDirection":"/** Sort direction for query orderBy clauses. */\ntype OrderDirection = (typeof ORDER_DIRECTION)[keyof typeof ORDER_DIRECTION];","OrderHookContext":"/**\n * Context passed to order webhook hooks.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface OrderHookContext {\n userId: string;\n orderId: string;\n billingConfigKey: string;\n /**\n * Stripe event ID. Delivery is at-least-once: the same event can reach a hook\n * again (retry after a failed or unrecorded run). Key side effects on\n * `orderId` (or `eventId`) so a replay is a no-op.\n */\n eventId: string;\n}","PWAAssetType":"/**\n * PWA asset type derived from PWA_ASSET_TYPES constant\n */\ntype PWAAssetType = (typeof PWA_ASSET_TYPES)[keyof typeof PWA_ASSET_TYPES];","PWADisplayMode":"/**\n * PWA display mode type derived from PWA_DISPLAY_MODES constant\n */\ntype PWADisplayMode = (typeof PWA_DISPLAY_MODES)[keyof typeof PWA_DISPLAY_MODES];","PWAPluginConfig":"/**\n * PWA Plugin Configuration\n * @description Configuration for Progressive Web App features\n */\ninterface PWAPluginConfig {\n /** Array of PWA assets */\n assets: Array<{\n /** Type of PWA asset */\n type: PWAAssetType;\n /** Asset file path */\n path: string;\n /** Asset file size in bytes */\n size?: number;\n /** Asset content (for inline assets) */\n content?: any;\n /** Asset format (for images) */\n format?: string;\n /** Asset purpose (for icons) */\n purpose?: string;\n }>;\n /** PWA manifest configuration */\n manifest: {\n /** Application name */\n name: string;\n /** Short application name */\n short_name: string;\n /** Application description */\n description: string;\n /** Start URL */\n start_url: string;\n /** Display mode */\n display: PWADisplayMode;\n /** Background color */\n background_color: string;\n /** Theme color */\n theme_color: string;\n /** Array of app icons */\n icons: Array<{\n /** Icon source path */\n src: string;\n /** Icon sizes (e.g., '192x192') */\n sizes: string;\n /** Icon MIME type */\n type: string;\n /** Icon purpose (e.g., 'any', 'maskable') */\n purpose: string;\n }>;\n };\n /** Discovery manifest metadata */\n manifestInfo: {\n /** Total number of PWA assets */\n totalAssets: number;\n /** Total number of icons */\n totalIcons: number;\n /** Whether service worker is present */\n hasServiceWorker: boolean;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","PageAuth":"/**\n * Page-level authentication requirements\n * @description Used in PageMeta and NavigationRoute for route-level auth\n */\ntype PageAuth = boolean | {\n /** Whether authentication is required */\n required?: boolean;\n /** Required user role */\n role?: UserRole;\n /** Required subscription tier */\n tier?: SubscriptionTier;\n /** Custom validation function */\n validate?: (role: string, tier: string) => boolean;\n}","PageMeta":"/** Page-level metadata for route discovery, auth, SEO, and navigation. */\ninterface PageMeta {\n /** Authentication requirements for this route */\n auth?: PageAuth;\n /** Route configuration - just define the exact path you want */\n route?: string | {\n params?: string[];\n };\n /** Page title (optional - framework auto-extracts from filename if not provided) */\n title?: string;\n /**\n * Translation/SEO namespace for this page\n * @description Used for meta tags and translations\n */\n namespace?: string;\n /**\n * Icon for navigation (optional - framework provides smart defaults)\n * @description **ONLY lucide-react JSX components** - extracted as component name string at build time for tree-shaking.\n *\n * **RESTRICTIONS:**\n * - ✅ Only: `<Rocket />`, `<ShoppingCart />`, `<Home />` (lucide-react JSX components)\n * - ❌ NOT: Emojis (`\"🚀\"`), strings (`\"Rocket\"`), or custom ReactNode\n *\n * **Why?** This is for build-time extraction and tree-shaking. The component name is extracted and stored as a string.\n *\n * **For flexible icons** (emojis, strings, custom components), use the `Icon` component directly in your JSX, not in PageMeta.\n *\n * @example\n * ```tsx\n * import { Rocket } from 'lucide-react';\n * export const meta: PageMeta = {\n * icon: <Rocket /> // ✅ Correct - lucide-react component\n * };\n * ```\n *\n * @example\n * ```tsx\n * // ❌ WRONG - Don't use emojis or strings in PageMeta\n * export const meta: PageMeta = {\n * icon: \"🚀\" // ❌ Not supported in PageMeta\n * };\n * ```\n */\n icon?: ReactNode;\n /**\n * Hide from navigation menu (default: false - shows in navigation)\n * @description Set to true to exclude this route from navigation menus\n * @default false\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * hideFromMenu: true // Won't appear in HeaderNavigation, Sidebar, etc.\n * };\n * ```\n */\n hideFromMenu?: boolean;\n /**\n * Hide breadcrumbs on this page (default: false)\n * @description Set to true to hide framework breadcrumbs on this route\n * @default false\n */\n hideBreadcrumbs?: boolean;\n /**\n * Layout preset override for this route\n * @description When set, overrides the app's default layout preset for this route only.\n * When absent, the app's `appConfig.preset` is used.\n * The override is transient — navigating away restores the next route's preset or the app default.\n *\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * preset: 'admin', // This route uses admin layout (sidebar, compact density)\n * auth: true,\n * };\n * ```\n */\n preset?: LayoutPreset;\n /**\n * SEO metadata override\n * @description Fine-grained control over `<title>`, meta description, and Open Graph tags.\n * When omitted, SEO uses i18n lookup based on `namespace` (i18n-first by default).\n *\n * @example Escape \"Page | App\" format\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'home',\n * seo: { fullTitle: 'DoNotDev - Build Apps in Minutes' },\n * };\n * ```\n *\n * @example siteName only (no page title)\n * ```tsx\n * export const meta: PageMeta = {\n * seo: { title: null },\n * };\n * ```\n */\n seo?: SeoMeta;\n /**\n * User-facing category for sidebar/menu grouping\n * @description Groups routes into collapsible sections in navigation. Unlike\n * auto-discovered `entity` (parent-dir name), `category` is author-declared\n * and typically maps to a higher-level folder (e.g., `Analyzers`, `Tools`).\n * Routes without `category` render ungrouped at the top of the menu.\n *\n * @example\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'budgetPlanner',\n * category: 'Analyzers',\n * icon: <WalletIcon />,\n * };\n * ```\n */\n category?: string;\n}","PaginatedQueryResult":"/**\n * Paginated query result returned by adapter.query().\n * @template T - The entity type\n */\ninterface PaginatedQueryResult<T> {\n items: T[];\n total?: number;\n hasMore?: boolean;\n /** Opaque cursor for the next page */\n lastVisible?: string | null;\n}","PaginationOptions":"/**\n * Generic pagination options for fetching paginated data\n */\ninterface PaginationOptions {\n /** The page number (1-indexed) */\n page: number;\n /** The number of items per page */\n pageSize: number;\n}","PaidLineItem":"/**\n * One paid line, read back from Stripe (amounts as charged).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface PaidLineItem {\n productId: string;\n name: string;\n quantity: number;\n /** Amounts in the smallest currency unit */\n amountSubtotal: number;\n amountDiscount: number;\n amountTax: number;\n amountTotal: number;\n}","PartnerConnectionState":"/**\n * Partner connection state interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PartnerConnectionState {\n isConnecting: boolean;\n isConnected: boolean;\n error: Error | null;\n}","PartnerIconId":"/**\n * Partner icon ID type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerIconId = keyof typeof PARTNER_ICONS;","PartnerId":"/**\n * Partner ID type (auth or OAuth)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerId = AuthPartnerId | OAuthPartnerId;","PartnerResult":"/**\n * Shared primitives for auth and oauth partner flows\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PartnerResult {\n success: boolean;\n error?: string;\n userInfo?: {\n id: string;\n name?: string;\n username?: string;\n email?: string;\n photoURL?: string;\n };\n}","PartnerType":"/**\n * Partner type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PartnerType = 'auth' | 'oauth' | 'both';","PayloadCacheEventData":"/**\n * Payload cache event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadCacheEventData {\n reason: string;\n scope: string;\n tags: string[];\n priority: string;\n timestamp: string;\n}","PayloadDocument":"/**\n * Payload document interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadDocument {\n id: string;\n [key: string]: any;\n}","PayloadDocumentEventData":"/**\n * Payload document event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadDocumentEventData {\n collection: string;\n documentId: string;\n operation: string;\n doc: any;\n previousDoc?: any;\n req: any;\n timestamp: string;\n}","PayloadEventKey":"/**\n * Type for Payload event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PayloadEventKey = keyof typeof PAYLOAD_EVENTS;","PayloadEventName":"/**\n * Type for Payload event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PayloadEventName = (typeof PAYLOAD_EVENTS)[PayloadEventKey];","PayloadGlobalEventData":"/**\n * Payload global event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadGlobalEventData {\n globalSlug: string;\n doc: any;\n previousDoc?: any;\n req: any;\n affectedPages: string[];\n timestamp: string;\n}","PayloadMediaEventData":"/**\n * Payload media event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadMediaEventData {\n mediaId: string;\n operation: string;\n media: any;\n previousMedia?: any;\n req: any;\n timestamp: string;\n}","PayloadPageRegenerationEventData":"/**\n * Payload page regeneration event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadPageRegenerationEventData {\n paths: string[];\n reason: string;\n priority: string;\n seoImpact: boolean;\n timestamp: string;\n}","PayloadRequest":"/**\n * Payload request interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadRequest {\n method: string;\n url: string;\n headers: Record<string, string>;\n body?: any;\n user?: any;\n timestamp: string;\n}","PayloadUserEventData":"/**\n * Payload user event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PayloadUserEventData {\n userId: string;\n operation: string;\n user: any;\n req: any;\n timestamp: string;\n}","PaymentEventData":"/**\n * Payment event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PaymentEventData {\n paymentId: string;\n amount: number;\n currency: string;\n status: 'succeeded' | 'failed' | 'pending' | 'refunded';\n subscription?: Record<string, unknown>;\n invoice?: Record<string, unknown>;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","PaymentMethod":"/** Payment method interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PaymentMethod {\n id: string;\n userId: string;\n type: PaymentMethodType;\n isDefault: boolean;\n last4?: string;\n brand?: string;\n expiryMonth?: number;\n expiryYear?: number;\n createdAt: string;\n updatedAt: string;\n}","PaymentMethodType":"/** Payment method types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PaymentMethodType = 'card' | 'bank_account' | 'paypal' | 'apple_pay' | 'google_pay';","PaymentMode":"/**\n * Type for payment mode names\n * Apps can extend this with their own custom modes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype PaymentMode = (typeof STRIPE_MODES)[keyof typeof STRIPE_MODES] | string;","Permission":"/**\n * Type for permission names\n * Apps can extend this with their own custom permissions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Permission = (typeof PERMISSIONS)[keyof typeof PERMISSIONS] | string;","Picture":"/**\n * Picture type for image fields\n * Represents uploaded image with full and thumbnail URLs\n */\ninterface Picture {\n fullUrl: string;\n thumbUrl: string;\n}","Platform":"/**\n * Platform type derived from PLATFORMS constant\n */\ntype Platform = (typeof PLATFORMS)[keyof typeof PLATFORMS];","PresetConfig":"/**\n * Complete preset configuration\n *\n * Declarative configuration for a layout preset.\n * Uses function-based slots, same API as consumers.\n *\n * @example\n * ```typescript\n * const landingPreset: PresetConfig = {\n * name: 'landing',\n * header: {\n * start: () => <AppBranding />,\n * center: () => null,\n * end: () => (\n * <>\n * <GoTo />\n * <AuthHeader />\n * </>\n * ),\n * },\n * mobile: {\n * header: {\n * end: () => <HeaderMenu>{desktop end content}</HeaderMenu>,\n * },\n * },\n * };\n * ```\n */\ninterface PresetConfig {\n /** Preset identifier (must match LayoutPreset type) */\n name: LayoutPreset;\n /** Header zone configuration (undefined = use defaults, object = override slots, function = custom mode) */\n header?: HeaderZoneConfig | SlotContent;\n /** Sidebar zone configuration (undefined = use defaults, object = override slots, function = custom mode) */\n sidebar?: SidebarZoneConfig | SlotContent;\n /** Footer zone configuration (undefined = use defaults, object = override) */\n footer?: FooterZoneConfig;\n /** Footer scroll behavior override for this preset */\n footerMode?: FooterMode;\n /** Mobile behavior configuration */\n mobile?: MobileBehaviorConfig;\n}","PresetRegistry":"/**\n * Preset registry type\n *\n * Maps preset names to their configurations.\n */\ntype PresetRegistry = Record<LayoutPreset, PresetConfig>;","ProcessPaymentSuccessRequest":"/**\n * Process payment success request\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ProcessPaymentSuccessRequest {\n sessionId: string;\n}","ProcessPaymentSuccessResponse":"/**\n * Process payment success response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ProcessPaymentSuccessResponse {\n success: boolean;\n sessionId: string;\n}","ProductDeclaration":"/**\n * Product declaration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ProductDeclaration = v.InferOutput<typeof ProductDeclarationSchema> & {\n onPurchaseSuccess?: (userId: string, metadata: any) => Promise<void>;\n onPurchaseFailure?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCreated?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionRenewed?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCancelled?: (userId: string, metadata: any) => Promise<void>;\n onPaymentFailed?: (userId: string, metadata: any) => Promise<void>;\n}","ProviderInstances":"/**\n * A map containing instances of authentication providers.\n * Uses schema discovery to support all AUTH_PARTNERS automatically.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ProviderInstances = Record<AuthPartnerId, any>;","QueryConfig":"/**\n * Query cache configuration\n *\n * Configure default TanStack Query cache behavior for your app.\n * These settings apply to all queries unless overridden per-query.\n *\n * **Framework Defaults (Infinite Cache):**\n * - `staleTime: Infinity` (data never becomes stale)\n * - `refetchOnWindowFocus: false` (manual refresh only)\n * - `refetchOnReconnect: false` (manual refresh only)\n *\n * This default strategy minimizes API costs and is ideal for:\n * - Single-admin apps\n * - Apps with manual refresh buttons\n * - Cost-optimized scenarios\n *\n * @example\n * ```typescript\n * // Use framework defaults (infinite cache, no auto-refetch)\n * // No query config needed - defaults are optimal\n * ```\n *\n * @example\n * ```typescript\n * // Override to short cache with auto-refetch\n * query: {\n * staleTime: 1000 * 60 * 5, // 5 minutes\n * refetchOnWindowFocus: true,\n * refetchOnReconnect: true,\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface QueryConfig {\n /** Time until data is considered stale (default: Infinity = never stale) */\n staleTime?: number;\n /** Time until inactive data is garbage collected (default: 30 minutes) */\n gcTime?: number;\n /** Number of retry attempts for failed queries (default: 1) */\n retry?: number;\n /** Whether to refetch when window regains focus (default: false = manual refresh only) */\n refetchOnWindowFocus?: boolean;\n /** Whether to refetch on reconnect (default: false = manual refresh only) */\n refetchOnReconnect?: boolean;\n /** Mutation retry attempts (default: 1) */\n mutationRetry?: number;\n /** Mutation retry delay function (default: exponential backoff) */\n mutationRetryDelay?: (attemptIndex: number) => number;\n}","QueryOptions":"/**\n * Query options for collection queries.\n * Provider-agnostic — each adapter maps these to its native query API.\n *\n * Default `limit` is **1000** (server max: 1000). For collections > 1000 items,\n * use server-side pagination with `startAfter` cursor.\n *\n * @example\n * // Fetch all (up to 1000)\n * { where: [{ field: 'status', operator: '==', value: 'available' }] }\n *\n * @example\n * // Paginate server-side\n * { limit: 50, startAfter: lastCursorId }\n */\ninterface QueryOptions {\n where?: QueryWhereClause[];\n orderBy?: QueryOrderBy[];\n /** Max items to fetch. Default: 1000, max: 1000. Use server pagination for larger collections. */\n limit?: number;\n /** Opaque cursor for pagination — value of the first orderBy field from the previous page's lastVisible */\n startAfter?: string | null;\n}","QueryOrderBy":"/** Order-by clause for a query. direction accepts 'asc' | 'desc' or string so consumer code can use variables. */\ninterface QueryOrderBy {\n field: string;\n direction?: OrderDirection;\n}","QueryWhereClause":"/** Single where clause for a query. operator accepts CrudOperator or string so consumer code can use variables or literals ('in', '==', etc.) without importing CRUD_OPERATORS. */\ninterface QueryWhereClause {\n field: string;\n operator: CrudOperator;\n value: unknown;\n}","RateLimitBackend":"/**\n * Pluggable rate limit backend for DndevSecurity.\n * Implement to swap the default in-memory limiter with Firestore, Postgres, Redis, etc.\n *\n * @example\n * ```typescript\n * import { checkRateLimitWithFirestore } from '@donotdev/functions/shared';\n * const security = new DndevSecurity({\n * rateLimitBackend: { check: (key, cfg) => checkRateLimitWithFirestore(key, cfg) },\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitBackend {\n check(key: string, config: ServerRateLimitConfig): Promise<ServerRateLimitResult>;\n}","RateLimitConfig":"/**\n * Configuration options for rate limiting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitConfig {\n /** Maximum number of allowed attempts within the window */\n maxAttempts: number;\n /** Time window in milliseconds */\n windowMs: number;\n /** Duration to block after maxAttempts is reached (ms) */\n blockDurationMs: number;\n /**\n * Whether to increase block duration exponentially for repeated blocks\n * @default true\n */\n useExponentialBackoff?: boolean;\n /**\n * Key for storage - should be unique per application or feature\n * @default \"dndev_auth_ratelimit\"\n */\n storageKey: string;\n /**\n * Maximum block duration in milliseconds\n * @default 86400000 (24 hours)\n */\n maxBlockDurationMs?: number;\n}","RateLimitManager":"/**\n * Rate limit manager interface for application-wide use\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitManager {\n /**\n * Get a rate limiter for a specific operation\n * @param operation Operation to rate limit\n * @param config Optional configuration overrides\n */\n getLimiter(operation: string, config?: Partial<RateLimitConfig>): RateLimiter;\n /**\n * Reset all rate limiters\n */\n resetAll(): void;\n}","RateLimitResult":"/**\n * Result of a rate limit check\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitResult {\n /** Whether the operation is allowed */\n allowed: boolean;\n /** Number of attempts remaining before being rate limited */\n remaining: number;\n /** When the rate limit window or block will reset */\n resetAt: Date | null;\n /** Seconds remaining in block (null if not blocked) */\n blockRemainingSeconds: number | null;\n}","RateLimitState":"/**\n * Rate limiting state for a specific operation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimitState {\n /** Number of attempts made in the current window */\n attempts: number;\n /** ISO date string when the current rate limit window started */\n windowStart: string;\n /** ISO date string when the block expires, or null if not blocked */\n blockUntil: string | null;\n}","RateLimiter":"/**\n * Rate limiter interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RateLimiter {\n /**\n * Check if an operation is allowed and record an attempt\n * @param identifier Optional identifier (e.g. email, username)\n * @returns Rate limit result\n */\n consume(identifier?: string): RateLimitResult;\n /**\n * Check rate limit without recording an attempt\n * @param identifier Optional identifier\n * @returns Rate limit result\n */\n check(identifier?: string): RateLimitResult;\n /**\n * Reset rate limiting state\n */\n reset(): void;\n /**\n * Reset rate limiting for a specific identifier\n * @param identifier The identifier to reset\n */\n resetForIdentifier(identifier: string): void;\n}","ReadCallback":"/**\n * Custom read callback for i18next backend\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ReadCallback = (err: any, data: any) => void;","RedirectOperation":"/**\n * All redirect operations - Union of billing, auth, and OAuth operations\n * Extensible via string intersection for custom operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RedirectOperation = BillingRedirectOperation | AuthRedirectOperation | OAuthRedirectOperation | (string & {}","RedirectOverlayActions":"/**\n * Redirect overlay actions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayActions {\n /** Show the redirect overlay */\n showRedirectOverlay: (operation: RedirectOperation, config?: RedirectOverlayConfig) => void;\n /** Hide the redirect overlay */\n hideRedirectOverlay: () => void;\n /** Update the current phase (internal use) */\n setRedirectPhase: (phase: RedirectOverlayPhase) => void;\n /** Show/hide cancel button (internal use) */\n setShowCancelButton: (show: boolean) => void;\n}","RedirectOverlayConfig":"/**\n * Configuration for redirect overlay (optional overrides)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayConfig {\n /** i18n namespace to use (default: inferred from operation) */\n namespace?: string;\n /** Custom title (overrides i18n) */\n title?: string;\n /** Custom message (overrides i18n) */\n message?: string;\n /** Custom subtitle (overrides i18n) */\n subtitle?: string;\n /** Icon type: 'lock' for payments, 'shield' for auth (default: inferred) */\n icon?: 'lock' | 'shield' | 'none';\n /** Timeout in ms before showing cancel button (default: 10000) */\n cancelTimeout?: number;\n}","RedirectOverlayPhase":"/**\n * Phase of the redirect overlay progression\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RedirectOverlayPhase = 'connecting' | 'preparing' | 'redirecting' | 'timeout';","RedirectOverlayState":"/**\n * Redirect overlay state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RedirectOverlayState {\n /** Whether the redirect overlay is visible */\n isRedirectOverlayOpen: boolean;\n /** Current operation being performed */\n redirectOperation: RedirectOperation | null;\n /** Current phase of the redirect */\n redirectPhase: RedirectOverlayPhase;\n /** Whether cancel button should be shown */\n showCancelButton: boolean;\n /** Configuration overrides */\n redirectConfig: RedirectOverlayConfig | null;\n /** Timestamp when overlay was shown (for phase progression) */\n redirectStartTime: number | null;\n}","Reference":"/**\n * Represents a reference to another document.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Reference {\n /** The collection containing the referenced document */\n collection: string;\n /** The ID of the referenced document */\n document: string;\n /** The field in the referenced document */\n field: string;\n}","RefreshSubscriptionRequest":"/**\n * Refresh subscription request\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RefreshSubscriptionRequest {\n userId: string;\n}","RefreshSubscriptionResponse":"/**\n * Refresh subscription response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RefreshSubscriptionResponse {\n success: boolean;\n subscription: Subscription;\n}","RemoveCustomClaimsResponse":"/**\n * Remove custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RemoveCustomClaimsResponse {\n success: boolean;\n userId: string;\n removedClaims: string[];\n remainingClaims: Record<string, any>;\n}","ResolveLineItemsContext":"/**\n * Context passed to `resolveLineItems`.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolveLineItemsContext {\n userId: string;\n billingConfigKey: string;\n /** Request metadata (sanitized) */\n metadata: Record<string, string>;\n}","ResolvedLayoutConfig":"/**\n * Resolved layout configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedLayoutConfig {\n /** Current preset name */\n preset: LayoutPreset;\n /** Resolved app configuration */\n app: {\n name: string;\n metadata: Record<string, any>;\n };\n}","ResolvedLineItem":"/**\n * One line priced by the app's `resolveLineItems` hook.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedLineItem {\n /** App product ID, copied to the Stripe product metadata and returned in `onOrderPaid` */\n productId: string;\n /** Name shown on the Stripe checkout page and invoice */\n name: string;\n description?: string;\n /** Unit price excl. VAT, in the smallest currency unit (cents) */\n unitAmount: number;\n quantity: number;\n}","ResolvedOrder":"/**\n * Output of `resolveLineItems`: the server-side order and its priced lines.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedOrder {\n /** App order ID (created by the hook, e.g. a pending order row) */\n orderId: string;\n lineItems: ResolvedLineItem[];\n /** Per-order session options decided by the server (omit to use the back config). */\n session?: ResolvedOrderSession;\n}","ResolvedOrderSession":"/**\n * Checkout session options a StripeOrder decides per order in `resolveLineItems`\n * (they depend on the buyer or the order, not on the back config).\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface ResolvedOrderSession {\n /**\n * Manual tax only: Tax Rate IDs applied to every line of this order instead of\n * `tax.taxRateIds` (each must be exclusive). `[]` = no tax (e.g. EU B2B reverse charge).\n */\n taxRateIds?: string[];\n /** Payment methods offered for this order. Replaces `paymentMethodConfiguration`. */\n paymentMethodTypes?: Array<'card' | 'sepa_debit'>;\n /** Session expiry, Unix seconds. Stripe: 30 minutes to 24 hours after creation. */\n expiresAt?: number;\n /** Footer printed on the post-payment invoice (e.g. a legal mention). Needs `invoiceCreation`. */\n invoiceFooter?: string;\n}","RevokeGitHubAccessRequest":"/**\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RevokeGitHubAccessRequest = v.InferOutput<typeof revokeGitHubAccessSchema>;","RouteMeta":"/**\n * Route metadata (discovery-generated)\n * @description Complete route metadata including auto-discovered fields from RouteDiscovery\n *\n * This extends PageMeta with fields that are automatically discovered from file paths:\n * - `entity`: Auto-extracted from path (pages/showcase/ → \"showcase\")\n * - `action`: Auto-extracted from filename patterns (ListPage → \"list\", FormPage → \"form\")\n *\n * These fields are always present in discovered routes but cannot be set in PageMeta.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface RouteMeta extends PageMeta {\n /** Entity/domain grouping - auto-discovered from file path (not user-configurable) */\n entity?: string;\n /** Action type for route categorization - auto-discovered from filename patterns (not user-configurable) */\n action?: string | null;\n /** File path where route was discovered */\n file?: string;\n}","RouteSource":"/**\n * Route source type derived from ROUTE_SOURCES constant\n */\ntype RouteSource = (typeof ROUTE_SOURCES)[keyof typeof ROUTE_SOURCES];","RoutesPluginConfig":"/**\n * Routes Plugin Configuration\n * @description Complete route configuration populated by discovery system\n */\ninterface RoutesPluginConfig {\n /**\n * Array of discovered routes\n * @description All routes discovered by the route discovery system\n */\n mapping: Array<{\n /**\n * URL path for the route (platform-agnostic)\n * @description The URL path that users see in their browser\n * @example '/showcase/layouts', '/users/:id', '/dashboard'\n */\n path: string;\n /**\n * Lazy component reference (Vite-specific)\n * @description React.lazy() component for code splitting\n * @example lazy(() => import(\"/src/pages/showcase/LayoutsPage\"))\n */\n component: any;\n /**\n * Absolute file system path (Next.js-specific)\n * @description The absolute path to the component file\n * @example '/src/pages/showcase/LayoutsPage.tsx'\n */\n importPath: string;\n /**\n * Export name for named exports\n * @example 'HomePage', 'AboutPage'\n */\n exportName?: string;\n /**\n * Authentication configuration (platform-agnostic)\n * @description Defines whether the route requires authentication\n */\n auth: PageAuth;\n /**\n * Route metadata (platform-agnostic)\n * @description Additional information about the route, including auto-discovered fields\n */\n meta: RouteMeta;\n }>;\n /**\n * Discovery metadata and statistics\n * @description Information about the route discovery process\n */\n manifest: {\n /** Total number of discovered routes */\n totalRoutes: number;\n /** Number of routes requiring authentication */\n authRequired: number;\n /** Number of public routes */\n publicRoutes: number;\n /** Source of routes (auto-discovery vs manual) */\n source: RouteSource;\n /** ISO timestamp when routes were generated */\n generatedAt: string;\n };\n}","SEOConfig":"/**\n * SEO configuration\n *\n * Configure automatic SEO meta tags and social sharing.\n *\n * @example\n * ```typescript\n * const seoConfig: SEOConfig = {\n * baseUrl: 'https://example.com',\n * defaultImage: '/og-image.png',\n * twitterHandle: 'mycompany'\n * };\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SEOConfig {\n /** Enable automatic SEO (default: true) */\n enabled?: boolean;\n /** Base URL for SEO files (robots.txt, sitemap.xml) - reads from VITE_APP_URL/NEXT_PUBLIC_APP_URL env var */\n baseUrl?: string;\n /** Site name for SEO - defaults to APP_NAME from app.ts */\n siteName?: string;\n /** Crawl delay for robots.txt (default: 1) */\n crawlDelay?: number;\n /** Generate robots.txt (default: true) */\n generateRobotsTxt?: boolean;\n /** Generate sitemap.xml (default: true) */\n generateSitemap?: boolean;\n /** Default namespace for i18n translations (default: 'home') */\n defaultNamespace?: string;\n /** Default image for social sharing */\n defaultImage?: string;\n /** Twitter handle (without @) */\n twitterHandle?: string;\n /** Additional static meta tags */\n staticTags?: Record<string, string>;\n /** URL redirect rules - generates platform-specific 301/302 redirects at build time */\n redirects?: Array<{\n /** Source path (supports :param syntax, e.g. '/old-blog/:slug') */\n from: string;\n /** Destination path (supports :param syntax, e.g. '/blog/:slug') */\n to: string;\n /** true = 301 permanent (default), false = 302 temporary */\n permanent?: boolean;\n }>;\n /**\n * AI crawler management in robots.txt (default: 'recommended')\n * - 'recommended': Block training bots (GPTBot, Google-Extended, CCBot, ClaudeBot),\n * allow search/retrieval bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, etc.)\n * - 'block-all': Block all AI bots\n * - 'allow-all': Allow all AI bots\n * - false: No AI crawler directives\n */\n aiCrawlers?: 'recommended' | 'block-all' | 'allow-all' | false;\n /** Generate llms.txt per llmstxt.org spec (default: true). Set to false to disable. */\n llmsTxt?: boolean;\n /** Inject Speculation Rules API for prefetch/prerender of internal links (default: true). Set to false to disable. */\n speculationRules?: boolean;\n /** Emit hreflang alternate links when i18n has 2+ languages (default: true). No-op for monolingual apps. Set to false to disable. */\n hreflang?: boolean;\n /** Auto-generate BreadcrumbList JSON-LD from URL path segments (default: true). Set to false to disable. */\n breadcrumbSchema?: boolean;\n /** Auto-generate WebSite JSON-LD with SearchAction for sitelinks search box (default: true). Set to false to disable. */\n websiteSchema?: boolean;\n /** Auto-generate Organization JSON-LD on homepage from app.links (default: true). Set to false to disable. */\n organizationSchema?: boolean;\n}","SchemaMetadata":"/**\n * Unified metadata structure for all schemas (CRUD, Functions, etc.)\n * Consolidates different metadata patterns into one DRY interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SchemaMetadata {\n /** Firestore collection name */\n collection: string;\n /** Entity name (for CRUD schemas) */\n entity?: string;\n /** Form configuration (for CRUD schemas) */\n form?: FormConfig;\n /** Fields that should be unique within the collection (for function validation) */\n uniqueFields?: Array<{\n field: string;\n errorMessage?: string;\n }>;\n /**\n * Unique key constraints from entity definition\n * Used by backend CRUD functions for deduplication\n */\n uniqueKeys?: UniqueKeyDefinition[];\n /** Custom validation function (for function validation) */\n customValidate?: (data: Record<string, any>, operation: 'create' | 'update') => Promise<void>;\n}","ScopeConfig":"/**\n * Multi-tenancy scope configuration for entities\n * Enables automatic scoping of data by tenant/company/workspace\n *\n * @example\n * ```typescript\n * const clientEntity = defineEntity({\n * name: 'Client',\n * collection: 'clients',\n * scope: { field: 'companyId', provider: 'company' },\n * fields: { ... } // No need to manually define companyId\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ninterface ScopeConfig {\n /**\n * Field name that stores the scope ID (e.g., 'companyId', 'tenantId', 'workspaceId')\n * This field will be auto-added to the entity with type 'reference'\n */\n field: string;\n /**\n * Name of the scope provider registered with registerScopeProvider()\n * The provider function returns the current scope ID from app state\n * @example 'company', 'tenant', 'workspace'\n */\n provider: string;\n /**\n * Collection being referenced (optional, defaults to field name without 'Id' suffix + 's')\n * @example 'companies' for field 'companyId'\n */\n collection?: string;\n}","SecurityContext":"/**\n * Security context interface consumed by CrudService and auth adapters.\n * Implemented by DndevSecurity in @donotdev/security/server.\n *\n * Pass an instance via CrudService.setSecurity() or auth adapter constructors.\n * When not provided, no audit logging, rate limiting, or encryption is applied.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SecurityContext {\n /** Emit a structured audit event */\n audit(event: Omit<AuditEvent, 'timestamp'>): void | Promise<void>;\n /**\n * Check rate limit for a key + operation.\n * @throws {Error} when threshold is exceeded\n */\n checkRateLimit(key: string, operation: 'read' | 'write'): Promise<void>;\n /** Encrypt named PII fields in a data object (returns new object) */\n encryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;\n /** Decrypt named PII fields in a data object (returns new object) */\n decryptPii<T extends Record<string, unknown>>(data: T, piiFields: string[]): T;\n /**\n * Auth hardening — when present, auth adapters delegate brute-force lockout here\n * instead of using their own hardcoded Maps, ensuring injected config is respected.\n */\n authHardening?: AuthHardeningContext;\n /**\n * Record a behavioral anomaly event (e.g. bulk deletes, bulk reads, auth failures).\n * Optional — no-op when not implemented. CrudService calls this after write mutations\n * so the anomaly detector can fire alerts when thresholds are breached.\n *\n * @param type - Anomaly type string (must match AnomalyType in @donotdev/security)\n * @param userId - User who triggered the anomaly (undefined = system / anonymous)\n */\n recordAnomaly?(type: string, userId?: string): void;\n}","SecurityEntityConfig":"/**\n * SOC2 security configuration for an entity.\n * Zero-config path: omit this entirely for MVP — add it when going to production/SOC2 audit.\n *\n * When a `SecurityContext` is passed to `CrudService`, these options control:\n * - Which fields are encrypted at rest (PII)\n * - Whether CRUD mutations are audit-logged (default: true)\n * - Entity-level rate limit overrides\n * - MFA requirement for a given role tier\n * - Data retention for automated purge scheduling\n *\n * @example\n * ```typescript\n * security: {\n * piiFields: ['email', 'phone', 'ssn'],\n * requireMfa: 'admin',\n * retention: { days: 365 },\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SecurityEntityConfig {\n /**\n * Field names to encrypt at rest using AES-256-GCM.\n * Requires `piiSecret` in `DndevSecurityConfig`.\n * Only string field values are encrypted; other types are skipped silently.\n */\n piiFields?: string[];\n /**\n * Whether to emit audit log entries for all CRUD mutations on this entity.\n * @default true (when SecurityContext is provided)\n */\n auditLog?: boolean;\n /**\n * Override rate limits for this entity (uses global defaults if omitted).\n */\n rateLimit?: {\n writes?: number;\n reads?: number;\n windowSeconds?: number;\n };\n /**\n * Enforce MFA for users at or above this role attempting mutations.\n * The adapter must verify MFA status from the auth token/session.\n */\n requireMfa?: UserRole;\n /**\n * Data retention policy — documents older than `days` are flagged for purge.\n * Integrate with `PrivacyManager.shouldPurge()` in a scheduled function.\n */\n retention?: {\n days: number;\n };\n}","SendEmailRequest":"/** Request payload for sending an email. */\ntype SendEmailRequest = v.InferOutput<typeof SendEmailRequestSchema>;","SendEmailResponse":"/** Response payload after sending an email. */\ntype SendEmailResponse = v.InferOutput<typeof SendEmailResponseSchema>;","SeoMeta":"/**\n * SEO metadata for a page\n * @description Controls `<title>`, meta description, Open Graph, and Twitter Cards.\n * All fields default to i18n lookup when undefined.\n *\n * @example i18n-first (default)\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'pricing', // Uses pricing:title, pricing:description\n * };\n * ```\n *\n * @example Full title control (escape \"Page | App\" format)\n * ```tsx\n * export const meta: PageMeta = {\n * namespace: 'home',\n * seo: { fullTitle: 'DoNotDev - Build Apps in Minutes' },\n * };\n * ```\n *\n * @example siteName only\n * ```tsx\n * export const meta: PageMeta = {\n * seo: { title: null }, // → \"AppName\"\n * };\n * ```\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ninterface SeoMeta {\n /**\n * Page title segment (appears as \"title | siteName\")\n * @description\n * - `undefined` → i18n lookup (`ns:title`)\n * - `string` → literal value + siteName suffix\n * - `null` → siteName only (no page title)\n */\n title?: string | null;\n /**\n * Full title override (no suffix appended)\n * @description Escapes the \"Page | App\" format entirely.\n * Takes priority over `title` when set.\n */\n fullTitle?: string;\n /**\n * Meta description\n * @description\n * - `undefined` → i18n lookup (`ns:description`)\n * - `string` → literal value\n * - `null` → omit meta description\n */\n description?: string | null;\n /** Open Graph image URL (relative or absolute) */\n image?: string;\n /** Keywords for meta tag */\n keywords?: string[];\n /** Page type for Open Graph */\n type?: 'website' | 'article' | 'product';\n /** Exclude from search engine indexing */\n noindex?: boolean;\n}","ServerRateLimitConfig":"/**\n * Persistence-backed rate limit config (server-side: maxAttempts / windowMs / blockDurationMs).\n * Used by RateLimitBackend implementations (Firestore, Postgres, Redis).\n * Distinct from the client-side RateLimitConfig in @donotdev/types/utils.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ServerRateLimitConfig {\n /** Max requests allowed within the window. */\n maxAttempts: number;\n /** Window duration in milliseconds. */\n windowMs: number;\n /** Block duration in milliseconds after limit is exceeded. */\n blockDurationMs: number;\n}","ServerRateLimitResult":"/**\n * Result from a server-side rate limit check.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ServerRateLimitResult {\n allowed: boolean;\n remaining: number;\n resetAt: Date | null;\n blockRemainingSeconds: number | null;\n}","ServerUserRecord":"/** Server-side user record (minimal) */\ninterface ServerUserRecord {\n uid: string;\n email?: string;\n displayName?: string;\n customClaims?: Record<string, unknown>;\n}","SetCustomClaimsResponse":"/**\n * Set custom claims response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SetCustomClaimsResponse {\n success: boolean;\n userId: string;\n claims: Record<string, any>;\n}","SidebarZoneConfig":"/**\n * Sidebar zone configuration\n *\n * Vertical layout with top/content/bottom areas.\n * All sidebars use ResizableSidebar wrapper.\n */\ninterface SidebarZoneConfig {\n /** Top slot - branding, search */\n top?: SlotContent;\n /** Content slot - main scrollable area (defaults to NavigationMenu) */\n content?: SlotContent;\n /** Bottom slot - user profile, settings */\n bottom?: SlotContent;\n /** Default sidebar width in pixels */\n defaultWidth?: number;\n /** Minimum width when resizing */\n minWidth?: number;\n /** Maximum width when resizing */\n maxWidth?: number;\n}","SignUpMetadata":"/**\n * Optional metadata passed to signup methods.\n * Stored in provider-specific user metadata (Supabase `raw_user_meta_data`, Firebase user doc).\n */\ninterface SignUpMetadata {\n /** ISO-8601 timestamp of GDPR consent acceptance */\n gdpr_consent_at?: string;\n /** Version identifier of the ToS document accepted */\n gdpr_tos_version?: string;\n /** Extensible for consumer-specific fields */\n [key: string]: unknown;\n}","SlotContent":"/**\n * Slot content function - returns ReactNode or null\n *\n * Presets use functions that return ReactNode, same API as consumers.\n * Return null to explicitly hide the slot.\n */\ntype SlotContent = () => ReactNode | null;","StorageOptions":"/**\n * Storage options for get/set operations\n */\ninterface StorageOptions {\n /**\n * Whether to encrypt the data\n * @default false for most data, true for sensitive data\n */\n encryption?: boolean;\n /**\n * Time in seconds after which the data expires\n * @description Set to 0 for no expiration\n * @default 0\n */\n expiry?: number;\n /**\n * Storage scope for data isolation\n * @description\n * - 'user': User-specific data, tied to user ID (requires auth)\n * - 'global': Application-wide data, not tied to specific user\n * - 'session': Session-only data, cleared on logout/browser close\n * @default 'user'\n */\n scope?: StorageScope;\n}","StorageScope":"/**\n * Storage scope type derived from STORAGE_SCOPES constant\n */\ntype StorageScope = (typeof STORAGE_SCOPES)[keyof typeof STORAGE_SCOPES];","StorageType":"/**\n * Storage type derived from STORAGE_TYPES constant\n */\ntype StorageType = (typeof STORAGE_TYPES)[keyof typeof STORAGE_TYPES];","Store":"/**\n * Combined store type including state and actions.\n * @template T - The entity type.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Store<T> = BaseState<T> & BaseActions<T>;","StripeBackConfig":"/**\n * Backend billing configuration type with hooks\n *\n * @version 0.2.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeBackConfig = Record<string, StripePaymentBackItem | StripeSubscriptionBackItem | StripeOrderBackItem>;","StripeCheckoutProvider":"/**\n * 0.1.x provider interface for Stripe checkout operations. Supports\n * StripePayment/StripeSubscription items only; StripeOrder needs the full-session\n * provider of @donotdev/functions (StripeSessionProvider).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutProvider {\n createCheckoutSession(params: CheckoutSessionParams): Promise<CheckoutSessionResult>;\n}","StripeCheckoutRequest":"/**\n * Stripe checkout session creation request\n *\n * 0.1.x request shape, still accepted. New code sends\n * `CreateCheckoutSessionRequestInput` (`billingConfigKey`, plus `lineItems` for StripeOrder).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutRequest {\n /** Stripe price ID (fixed pricing mode) */\n priceId?: string;\n /** Currency code, defaults to 'eur' (dynamic pricing mode) */\n currency?: string;\n /** User email for the subscription */\n userEmail: string;\n /** URL to redirect to on successful payment */\n successUrl: string;\n /** URL to redirect to on cancelled payment */\n cancelUrl: string;\n /** Optional metadata to attach to the session */\n metadata?: Record<string, string>;\n /** Customer email address */\n customerEmail?: string;\n /** Whether to allow promotion codes */\n allowPromotionCodes?: boolean;\n /** Trial period in days */\n trialPeriodDays?: number;\n /** Collection method for the subscription */\n collectionMethod?: 'charge_automatically' | 'send_invoice';\n /** Payment method types to allow */\n paymentMethodTypes?: string[];\n /** Billing address collection requirement */\n billingAddressCollection?: 'auto' | 'required';\n /** Tax ID collection requirement */\n taxIdCollection?: {\n enabled: boolean;\n };\n /** Checkout mode - payment or subscription */\n mode?: CheckoutMode;\n}","StripeCheckoutResponse":"/**\n * Stripe checkout session response\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutResponse {\n /** Stripe session ID */\n sessionId: string;\n /** URL to redirect the user to complete payment */\n sessionUrl: string | null;\n /** Whether the session was created successfully */\n success: boolean;\n /** Error message if creation failed */\n error?: string;\n}","StripeCheckoutSessionEventData":"/**\n * Stripe checkout session event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCheckoutSessionEventData {\n sessionId: string;\n customerId?: string;\n paymentIntentId?: string;\n amount?: number;\n currency?: string;\n customerEmail?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeConfig":"/**\n * Stripe configuration interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeConfig {\n /** Stripe secret key for server-side operations */\n secretKey: string;\n /** Stripe publishable key for client-side operations */\n publishableKey: string;\n /** Stripe webhook secret for webhook verification */\n webhookSecret: string;\n /** Whether to use test mode */\n testMode: boolean;\n /** API version to use */\n apiVersion?: string;\n /** Maximum number of retries for failed requests */\n maxNetworkRetries?: number;\n /** Request timeout in milliseconds */\n timeout?: number;\n /** Additional configuration options */\n options?: {\n /** Whether to enable telemetry */\n telemetry?: boolean;\n /** App information */\n appInfo?: {\n name: string;\n version: string;\n url?: string;\n };\n };\n}","StripeCustomer":"/**\n * Stripe customer data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCustomer {\n /** Stripe customer ID */\n id: string;\n /** Customer email */\n email?: string;\n /** Customer name */\n name?: string;\n /** Customer description */\n description?: string;\n /** Customer phone */\n phone?: string;\n /** Customer address */\n address?: {\n city?: string;\n country?: string;\n line1?: string;\n line2?: string;\n postal_code?: string;\n state?: string;\n };\n /** Customer balance */\n balance: number;\n /** Currency code */\n currency?: string;\n /** When the customer was created */\n created: number;\n /** When the customer was last updated */\n updated: number;\n /** Customer metadata */\n metadata: Record<string, string>;\n /** Default payment method */\n default_source?: string;\n /** Whether the customer is deleted */\n deleted?: boolean;\n /** Customer tax IDs */\n tax_ids?: {\n data: Array<{\n id: string;\n type: 'eu_vat' | 'br_cnpj' | 'br_cpf' | 'gb_vat' | 'nz_gst' | 'au_abn' | 'au_arn' | 'in_gst' | 'no_vat' | 'za_vat' | 'ch_vat' | 'mx_rfc' | 'sg_uen' | 'ru_inn' | 'ru_kpp' | 'ca_bn' | 'hk_br' | 'es_cif' | 'tw_vat' | 'th_vat' | 'jp_cn' | 'jp_rn' | 'li_uid' | 'my_itn' | 'us_ein' | 'kr_brn' | 'ca_gst_hst' | 'ca_qst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'my_sst' | 'sg_gst' | 'ae_trn' | 'cl_tin' | 'sa_vat' | 'id_npwp';\n value: string;\n }>;\n };\n}","StripeCustomerEventData":"/**\n * Stripe customer event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeCustomerEventData {\n customerId: string;\n email?: string;\n name?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeEventData":"/**\n * Stripe event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeEventData {\n eventId?: string;\n eventType?: string;\n customerId?: string;\n subscriptionId?: string;\n amount?: number;\n currency?: string;\n status?: string;\n metadata?: Record<string, any>;\n timestamp: string;\n}","StripeEventKey":"/**\n * Type for Stripe event keys\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeEventKey = keyof typeof STRIPE_EVENTS;","StripeEventName":"/**\n * Type for Stripe event names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeEventName = (typeof STRIPE_EVENTS)[StripeEventKey];","StripeFrontConfig":"/**\n * Frontend billing configuration type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeFrontConfig = v.InferOutput<typeof StripeFrontConfigSchema>;","StripeInvoice":"/**\n * Stripe invoice data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeInvoice {\n /** Stripe invoice ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Invoice amount */\n amount_due: number;\n /** Invoice amount paid */\n amount_paid: number;\n /** Invoice amount remaining */\n amount_remaining: number;\n /** Currency code */\n currency: string;\n /** Invoice status */\n status: 'draft' | 'open' | 'paid' | 'void' | 'uncollectible';\n /** When the invoice was created */\n created: number;\n /** When the invoice is due */\n due_date?: number;\n /** When the invoice was paid */\n paid_at?: number;\n /** When the invoice was voided */\n voided_at?: number;\n /** Invoice description */\n description?: string;\n /** Invoice line items */\n lines: {\n data: Array<{\n id: string;\n amount: number;\n currency: string;\n description?: string;\n quantity: number;\n unit_amount: number;\n price?: {\n id: string;\n unit_amount: number;\n currency: string;\n recurring?: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n };\n product: string;\n };\n }>;\n };\n /** Invoice metadata */\n metadata: Record<string, string>;\n /** Subscription ID (if applicable) */\n subscription?: string;\n /** Total amount */\n total: number;\n /** Tax amount */\n tax?: number;\n /** Tax rate applied */\n tax_rate?: number;\n}","StripeInvoiceEventData":"/**\n * Stripe invoice event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeInvoiceEventData {\n invoiceId: string;\n customerId: string;\n amount: number;\n currency: string;\n status: string;\n hostedInvoiceUrl?: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripeOrderBackItem":"/**\n * Multi-line, one-time order priced on the server.\n * Order hooks are delivered at least once and must be idempotent on\n * `ctx.orderId` / `ctx.eventId`: a hook re-runs when it threw (the webhook\n * answers non-2xx and Stripe retries) and also after it succeeded when the\n * framework could not record the event as processed. A store write cannot be\n * atomic with an arbitrary hook, so exactly-once is not possible.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripeOrderBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripeOrder';\n}","StripePayment":"/**\n * Stripe payment type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripePayment = v.InferOutput<typeof StripePaymentSchema> & {\n onPurchaseSuccess?: (userId: string, metadata: any) => Promise<void>;\n onPurchaseFailure?: (userId: string, metadata: any) => Promise<void>;\n}","StripePaymentBackItem":"/**\n * One-time payment item (single Stripe price) granting a tier.\n * The tier is granted once the payment is settled: at checkout completion when\n * `payment_status` is `paid` / `no_payment_required`, else on\n * `checkout.session.async_payment_succeeded` (e.g. SEPA debit).\n * Hooks run at least once per Stripe event and may run again for the same\n * purchase: make them idempotent. Their errors are logged, not retried.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripePaymentBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripePayment';\n}","StripePaymentIntentEventData":"/**\n * Stripe payment intent event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePaymentIntentEventData {\n paymentIntentId: string;\n customerId?: string;\n amount: number;\n currency: string;\n status: string;\n metadata?: Record<string, string>;\n timestamp: string;\n}","StripePaymentMethod":"/**\n * Stripe payment method data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePaymentMethod {\n /** Stripe payment method ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Payment method type */\n type: 'card' | 'bank_account' | 'us_bank_account' | 'sepa_debit' | 'ideal' | 'sofort' | 'bancontact' | 'p24' | 'giropay' | 'eps' | 'alipay' | 'wechat_pay';\n /** Card details (if type is 'card') */\n card?: {\n brand: 'amex' | 'diners' | 'discover' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';\n country: string;\n exp_month: number;\n exp_year: number;\n fingerprint: string;\n funding: 'credit' | 'debit' | 'prepaid' | 'unknown';\n last4: string;\n three_d_secure_usage?: {\n supported: boolean;\n };\n wallet?: {\n type: 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'masterpass' | 'samsung_pay' | 'visa_checkout';\n dynamic_last4?: string;\n };\n };\n /** Bank account details (if type is 'bank_account') */\n bank_account?: {\n account_holder_type: 'individual' | 'company';\n bank_name: string;\n country: string;\n currency: string;\n fingerprint: string;\n last4: string;\n routing_number: string;\n status: 'new' | 'validated' | 'verified' | 'verification_failed' | 'errored';\n };\n /** Billing details */\n billing_details: {\n address?: {\n city?: string;\n country?: string;\n line1?: string;\n line2?: string;\n postal_code?: string;\n state?: string;\n };\n email?: string;\n name?: string;\n phone?: string;\n };\n /** When the payment method was created */\n created: number;\n /** Whether this is the default payment method */\n is_default?: boolean;\n /** Payment method metadata */\n metadata: Record<string, string>;\n}","StripePrice":"/**\n * Stripe price data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripePrice {\n /** Stripe price ID */\n id: string;\n /** Product ID */\n product: string;\n /** Price amount in cents */\n unit_amount: number;\n /** Currency code */\n currency: string;\n /** Price type */\n type: 'one_time' | 'recurring';\n /** Recurring interval (if type is 'recurring') */\n recurring?: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n trial_period_days?: number;\n usage_type: 'licensed' | 'metered';\n };\n /** Whether the price is active */\n active: boolean;\n /** When the price was created */\n created: number;\n /** When the price was last updated */\n updated: number;\n /** Price metadata */\n metadata: Record<string, string>;\n /** Price nickname */\n nickname?: string;\n /** Price tiers (for graduated pricing) */\n tiers?: Array<{\n up_to: number | 'inf';\n unit_amount: number;\n flat_amount?: number;\n }>;\n /** Price tiers mode */\n tiers_mode?: 'graduated' | 'volume';\n /** Price transform quantity */\n transform_quantity?: {\n divide_by: number;\n round: 'up' | 'down';\n };\n /** Price lookup key */\n lookup_key?: string;\n}","StripeProduct":"/**\n * Stripe product data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeProduct {\n /** Stripe product ID */\n id: string;\n /** Product name */\n name: string;\n /** Product description */\n description?: string;\n /** Product images */\n images: string[];\n /** Product metadata */\n metadata: Record<string, string>;\n /** Whether the product is active */\n active: boolean;\n /** When the product was created */\n created: number;\n /** When the product was last updated */\n updated: number;\n /** Product type */\n type: 'service' | 'good';\n /** Product URL */\n url?: string;\n /** Product statement descriptor */\n statement_descriptor?: string;\n /** Product unit label */\n unit_label?: string;\n /** Product tax code */\n tax_code?: string;\n}","StripeProvider":"/**\n * Stripe provider interface for billing operations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeProvider {\n createCheckoutSession(params: {\n priceId?: string;\n /** Currency code, defaults to 'eur' */\n currency?: string;\n userId: string;\n successUrl: string;\n cancelUrl: string;\n metadata?: Record<string, string>;\n customerEmail?: string;\n allowPromotionCodes?: boolean;\n }): Promise<CreateCheckoutSessionResponse>;\n getSubscription(userId: string): Promise<Subscription | null>;\n cancelSubscription(subscriptionId: string): Promise<boolean>;\n updateSubscription(subscriptionId: string, updates: Partial<Subscription>): Promise<Subscription>;\n}","StripeSubscription":"/**\n * Stripe subscription type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StripeSubscription = v.InferOutput<typeof StripeSubscriptionSchema> & {\n onSubscriptionCreated?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionRenewed?: (userId: string, metadata: any) => Promise<void>;\n onSubscriptionCancelled?: (userId: string, metadata: any) => Promise<void>;\n onPaymentFailed?: (userId: string, metadata: any) => Promise<void>;\n}","StripeSubscriptionBackItem":"/**\n * Recurring subscription item (single Stripe price) granting a tier.\n * Granted once the first payment is settled (same rule as StripePayment).\n * Hooks run at least once per Stripe event and may run again for the same\n * event: make them idempotent. Their errors are logged, not retried.\n *\n * @version 0.2.0\n * @since 0.2.0\n * @author AMBROISE PARK Consulting\n */\ntype StripeSubscriptionBackItem = Extract<StripeBackConfigItemData, {\n type: 'StripeSubscription';\n}","StripeSubscriptionData":"/**\n * Stripe subscription data structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeSubscriptionData {\n /** Stripe subscription ID */\n id: string;\n /** Customer ID */\n customer: string;\n /** Subscription status */\n status: 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid';\n /** Current period start timestamp */\n current_period_start: number;\n /** Current period end timestamp */\n current_period_end: number;\n /** Whether the subscription will cancel at period end */\n cancel_at_period_end: boolean;\n /** When the subscription was canceled */\n canceled_at?: number;\n /** Trial start timestamp */\n trial_start?: number;\n /** Trial end timestamp */\n trial_end?: number;\n /** When the subscription was created */\n created: number;\n /** When the subscription was last updated */\n updated: number;\n /** Subscription items */\n items: {\n data: Array<{\n id: string;\n price: {\n id: string;\n unit_amount: number;\n currency: string;\n recurring: {\n interval: 'day' | 'week' | 'month' | 'year';\n interval_count: number;\n };\n product: string;\n };\n quantity: number;\n }>;\n };\n /** Default payment method */\n default_payment_method?: string;\n /** Collection method */\n collection_method: 'charge_automatically' | 'send_invoice';\n /** Days until due for invoices */\n days_until_due?: number;\n /** Subscription metadata */\n metadata: Record<string, string>;\n}","StripeWebhookEvent":"/**\n * Stripe webhook event data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeWebhookEvent {\n id: string;\n type: string;\n data: {\n /** Raw Stripe object payload — shape depends on event type */\n object: Record<string, unknown>;\n };\n created: number;\n livemode: boolean;\n pending_webhooks: number;\n request?: {\n id: string;\n idempotency_key?: string;\n };\n}","StripeWebhookEventData":"/**\n * Stripe webhook event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StripeWebhookEventData {\n eventId: string;\n eventType: string;\n data: any;\n livemode: boolean;\n timestamp: string;\n}","Subscription":"/**\n * Subscription interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface Subscription {\n id: string;\n userId: string;\n status: 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'trialing' | 'unpaid';\n currentPeriodStart: string;\n currentPeriodEnd: string;\n cancelAtPeriodEnd: boolean;\n canceledAt?: string;\n trialStart?: string;\n trialEnd?: string;\n createdAt: string;\n updatedAt: string;\n}","SubscriptionClaims":"/**\n * Subscription claims stored in Firebase Auth custom claims\n * Type definition - schema in schemas.ts validates against this structure\n */\ntype SubscriptionClaims = {\n tier: string;\n subscriptionId: string | null;\n customerId: string;\n status: SubscriptionStatus;\n subscriptionEnd: string | null;\n cancelAtPeriodEnd: boolean;\n updatedAt: string;\n isDefault?: boolean;\n}","SubscriptionConfig":"/**\n * Generic subscription configuration interface\n * Apps define their specific subscription tiers and features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionConfig {\n /** Subscription tiers with their features and hierarchy */\n tiers: Record<string, {\n /** Features available for this tier */\n features: string[];\n /** Tier level for comparison (higher = more access) */\n level: number;\n }>;\n}","SubscriptionData":"/**\n * Subscription data type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionData = v.InferOutput<typeof SubscriptionDataSchema>;","SubscriptionDuration":"/**\n * Type for subscription duration names\n * Apps can extend this with their own custom durations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionDuration = (typeof SUBSCRIPTION_DURATIONS)[keyof typeof SUBSCRIPTION_DURATIONS] | string;","SubscriptionEventData":"/**\n * Subscription event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionEventData {\n subscription: Record<string, unknown>;\n previousSubscription?: Record<string, unknown>;\n reason?: string;\n timestamp: Date;\n metadata?: Record<string, unknown>;\n}","SubscriptionHookResult":"/**\n * Result type for the useSubscription hook\n * NOTE: subscription is now always present\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionHookResult {\n subscription: SubscriptionInfo;\n refreshSubscription: () => Promise<void>;\n hasFeature: (featureId: string) => boolean;\n hasTier: (requiredTier: string) => boolean;\n}","SubscriptionInfo":"/**\n * Extends SubscriptionClaims with calculated or derived subscription status information.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionInfo extends SubscriptionClaims {\n /** Indicates if the subscription is currently active (typically based on subscriptionEnd) */\n isActive: boolean;\n /** Number of days remaining in the subscription, or null if not applicable */\n daysRemaining: number | null;\n /** Array of feature IDs available to the user based on their subscription */\n features: string[];\n}","SubscriptionStatus":"/**\n * Type for subscription status names\n * Apps can extend this with their own custom statuses\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionStatus = (typeof SUBSCRIPTION_STATUS)[keyof typeof SUBSCRIPTION_STATUS] | string;","SubscriptionTier":"/**\n * Type for subscription tier names\n * Apps can extend this with their own custom tiers\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SubscriptionTier = (typeof SUBSCRIPTION_TIERS)[keyof typeof SUBSCRIPTION_TIERS] | string;","SubscriptionUpdate":"/**\n * Subscription fields written to a user by the webhook and subscription helpers\n * (the stored record, {@link SubscriptionData}, adds userId and updatedAt).\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ninterface SubscriptionUpdate {\n tier: string;\n status: 'active' | 'canceled' | 'past_due' | 'trialing' | 'incomplete';\n subscriptionEnd: string | null;\n cancelAtPeriodEnd?: boolean;\n subscriptionId?: string | null;\n customerId?: string;\n}","SupportedLanguage":"/**\n * Supported language codes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype SupportedLanguage = string;","ThemeActions":"/**\n * Enhanced theme actions for the store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeActions {\n /** Set the current theme with DOM application and persistence */\n setTheme: (theme: string) => Promise<void>;\n /** Update the list of available themes */\n setAvailableThemes: (themes: ThemeInfo[]) => void;\n /** Set dark mode state */\n setDarkMode: (isDark: boolean) => void;\n /** Set theme mode preference */\n setThemeMode: (mode: ThemeMode) => void;\n /** Set loading state */\n setLoading: (isLoading: boolean) => void;\n /** Set error state */\n setError: (error: string | null) => void;\n /** Clear error */\n clearError: () => void;\n /** Check if a theme is available */\n isThemeAvailable: (themeName: string) => boolean;\n /** Reset theme settings to defaults */\n resetTheme: () => void;\n /** Get theme info for the current theme */\n getCurrentThemeInfo: () => ThemeInfo | null;\n /** Switch to the next available theme */\n switchToNextTheme: () => void;\n /** Toggle between light and dark theme variants */\n toggleDarkMode: () => void;\n /**\n * Initialize theme system with discovery data and user config\n * @param appConfig - Full AppConfig from AppConfigProvider (store extracts what it needs)\n */\n initialize: (appConfig?: AppConfig) => Promise<boolean>;\n}","ThemeInfo":"/**\n * Theme information structure with enhanced metadata\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeInfo {\n /** Unique theme identifier */\n name: string;\n /** User-friendly display name */\n displayName: string;\n /** Theme description */\n description?: string;\n /** Whether this is a dark theme */\n isDark: boolean;\n /** CSS variables for this theme */\n variables?: Record<string, string>;\n /** Enhanced theme metadata */\n meta: {\n /** Icon identifier for UI (e.g., 'SunIcon', 'MoonIcon') */\n icon: string;\n /** Optional theme description for UI */\n description?: string;\n /** Optional category for grouping themes */\n category?: string;\n /** Optional author information */\n author?: string;\n /** Additional metadata */\n [key: string]: any;\n };\n}","ThemeMode":"/**\n * Theme mode setting\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ThemeMode = 'light' | 'dark' | 'auto';","ThemeState":"/**\n * Theme state in the store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ThemeState {\n /** Currently active theme */\n currentTheme: string;\n /** List of available themes */\n availableThemes: ThemeInfo[];\n /** Whether dark mode is currently active */\n isDarkMode: boolean;\n /** User's theme mode preference */\n themeMode: ThemeMode;\n /** Loading state for theme operations */\n isLoading: boolean;\n /** Error state for theme operations */\n error: string | null;\n}","ThemesPluginConfig":"/**\n * Themes Plugin Configuration\n * @description Configuration for theme discovery and management\n */\ninterface ThemesPluginConfig {\n /** Mapping of theme names to theme configurations */\n mapping: Record<string, any>;\n /** Array of discovered themes */\n discovered: Array<{\n /** Theme identifier */\n name: string;\n /** Human-readable theme name */\n displayName: string;\n /** Whether this is a dark theme */\n isDark: boolean;\n /** Theme metadata */\n meta: {\n /** Icon identifier */\n icon: string;\n /** Theme description */\n description?: string;\n /** Theme category */\n category?: string;\n /** Theme author */\n author?: string;\n /** Additional metadata */\n [key: string]: any;\n };\n /** Source file path */\n source: string;\n /** Whether theme is essential (cannot be disabled) */\n essential: boolean;\n }>;\n /** CSS custom property variables */\n variables: Record<string, string>;\n /** Utility class mappings */\n utilities: Record<string, Record<string, string>>;\n /** Discovery manifest metadata */\n manifest: {\n /** Total number of discovered themes */\n totalThemes: number;\n /** Total number of CSS variables */\n totalVariables: number;\n /** Total number of utility classes */\n totalUtilities: number;\n /** ISO timestamp of generation */\n generatedAt: string;\n };\n}","TierAccessHookResult":"/**\n * Result type for the useTierAccess hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TierAccessHookResult {\n enabled: boolean;\n}","Timestamp":"/**\n * Generic timestamp format for dates and times\n * @description ISO 8601 string format (e.g., \"2025-01-15T10:30:00.000Z\")\n */\ntype Timestamp = string;","TokenInfo":"/**\n * Information about a token including its status and expiration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenInfo {\n /** The actual token string or null if not available */\n token: string | null;\n /** Current status of the token */\n status: TokenStatus;\n /** When the token expires, or null if not available */\n expiresAt: Date | null;\n /** When the token was last refreshed */\n lastRefreshed?: Date;\n /** Number of seconds until expiration */\n expiresIn?: number;\n}","TokenResponse":"/**\n * Token response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenResponse {\n access_token: string;\n token_type?: string;\n expires_in?: number;\n refresh_token?: string;\n scope?: string;\n id_token?: string;\n created_at?: number;\n}","TokenState":"/**\n * Authentication token state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenState {\n /** The authentication token string or null if not authenticated */\n token: string | null;\n /** ISO date string of when the token expires */\n expiresAt: string | null;\n /** Current status of the token */\n status: TokenStatus;\n}","TokenStatus":"/**\n * Token status possible values\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype TokenStatus = 'valid' | 'expiring-soon' | 'expired' | 'error' | 'not-initialized';","TranslationOptions":"/**\n * Translation options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TranslationOptions {\n /** Language code (e.g., 'en', 'fr') */\n lng: string;\n /** Optional namespace array */\n ns?: string[];\n /** Fallback language code */\n fallbackLng?: string;\n}","TranslationResource":"/**\n * Interface representing the structure of a translations resource\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TranslationResource {\n /** Language code (e.g., 'en', 'fr') */\n [language: string]: {\n /** Namespace (e.g., 'common', 'auth') */\n [namespace: string]: Record<string, any>;\n };\n}","UIFieldOptions":"/**\n * Additional UI-specific options for field rendering\n * @template T - The field type (built-in or custom string). Custom types use CustomFieldOptionsMap for fieldSpecific.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UIFieldOptions<T extends string = FieldType> {\n /** The section under which this field should be grouped */\n section?: string;\n /** Placeholder text */\n placeholder?: string;\n /** Whether to show a clear button */\n clearable?: boolean;\n /** Additional classes to apply to the field */\n className?: string;\n /** Icon to show before the field */\n prefixIcon?: ComponentType;\n /** Icon to show after the field */\n suffixIcon?: ComponentType;\n /** Custom validation message overrides */\n messages?: {\n required?: string;\n pattern?: string;\n min?: string;\n max?: string;\n minLength?: string;\n maxLength?: string;\n };\n /** Step value for numeric inputs */\n step?: T extends 'number' | 'range' ? number : never;\n /**\n * i18n key for display formatting. Replaces the raw value in lists/cards/display views.\n * The formatter calls `t(displayKey, { value })`. Supports i18next array-key fallback.\n * Use `{{value}}` in key names for dynamic lookup (interpolated before `t()` call).\n *\n * @example Single key: `displayKey: 'fields.size_display'` → locale `\"{{value}}m²\"` → \"20m²\"\n * @example Array fallback: `displayKey: ['floor_{{value}}', 'fields.floor_display']`\n * → tries `floor_4`, falls back to `fields.floor_display`: `\"{{value}}th floor\"` → \"4th floor\"\n */\n displayKey?: string | string[];\n /**\n * Custom display value resolver. Overrides type formatter and displayKey for display views.\n * Receives the field value, the full item, and the translation function —\n * useful for cross-field conditional display with i18n.\n * Return `null` to hide the field for that item. Return a string to display it.\n *\n * @example\n * ```typescript\n * // Hide date for reserved/signed, show \"Available\" for past dates\n * displayValue: (value, item, t) => {\n * if (item.status === 'reserved' || item.status === 'signed') return null;\n * return value <= today ? t('status.available_now') : String(value);\n * }\n * ```\n */\n displayValue?: (value: unknown, item: Record<string, unknown>, t: (key: string, options?: Record<string, unknown>) => string) => string | null;\n /** Whether to show value label for range inputs */\n showValue?: T extends 'range' ? boolean : never;\n /** Field specific options based on field type. Custom types: augment CustomFieldOptionsMap. */\n fieldSpecific?: T extends keyof CustomFieldOptionsMap ? CustomFieldOptionsMap[T] : T extends 'file' | 'image' | 'files' | 'images' | 'document' | 'documents' ? {\n /** File types to accept (e.g., 'image/*', '.pdf') */\n accept?: string;\n /** Maximum file size in bytes */\n maxSize?: number;\n /** Whether to allow multiple files */\n multiple?: boolean;\n /** Storage path prefix for uploads (e.g., 'apartments') */\n storagePath?: string;\n } : T extends 'geopoint' ? {\n /** Default zoom level for map */\n defaultZoom?: number;\n /** Default center position for map */\n defaultCenter?: {\n lat: number;\n lng: number;\n };\n } : T extends 'map' ? {\n /** Label for the key input */\n keyLabel?: string;\n /** Label for the value input */\n valueLabel?: string;\n /** Label for the add button */\n addLabel?: string;\n } : T extends 'reference' ? {\n /** Field to display from the referenced entity */\n displayField?: string;\n /** Multiple fields to join as label (e.g. ['first_name', 'last_name'] → \"John Doe\") */\n labelFields?: string[];\n /** Fields to search in the referenced entity */\n searchFields?: string[];\n /** Maximum number of items to preload */\n preloadLimit?: number;\n } : T extends 'tel' ? {\n /** Default country code */\n defaultCountry?: string;\n /** Whether to show country flags */\n showFlags?: boolean;\n /** Preferred country codes to show at the top of the list (e.g., ['FR', 'US', 'GB']) */\n preferredCountries?: string[];\n /** Custom list of country codes to show (if provided, only these countries are shown) */\n countries?: string[];\n } : T extends 'address' ? {\n /**\n * Whether to enable Google Maps autocomplete (default: false)\n * Requires env var: VITE_GOOGLE_MAPS_API_KEY (Vite) or NEXT_PUBLIC_GOOGLE_MAPS_API_KEY (Next.js)\n */\n enableGoogleMaps?: boolean;\n /** Whether to extract district code for Paris addresses */\n extractDistrictCode?: boolean;\n } : T extends 'combobox' ? {\n /** Enable creating new values by typing */\n creatable?: boolean;\n } : T extends 'switch' ? {\n /** Label shown when switch is off/unchecked */\n uncheckedLabel?: string;\n /** Label shown when switch is on/checked */\n checkedLabel?: string;\n /** Value stored when switch is off (default: false) */\n uncheckedValue?: string | boolean;\n /** Value stored when switch is on (default: true) */\n checkedValue?: string | boolean;\n } : T extends 'gdprConsent' ? {\n /** Path to privacy policy page (default: '/legal/privacy') */\n privacyPolicyPath?: string;\n /** Path to terms of use page (default: '/legal/terms') */\n termsPath?: string;\n } : Record<string, unknown>;\n}","UniqueConstraintValidator":"/**\n * Interface for database uniqueness validation\n * This abstraction allows for plugging in any database implementation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UniqueConstraintValidator {\n /**\n * Checks if a value would cause a duplicate in a given collection\n * @param collection - The collection/table name\n * @param field - The field name to check\n * @param value - The field value to check for uniqueness\n * @param currentDocId - The current document ID (for updates)\n * @returns Whether a duplicate exists\n */\n checkDuplicate: (collection: string, field: string, value: any, currentDocId?: string) => Promise<boolean>;\n}","UniqueKeyDefinition":"/**\n * Unique key constraint definition for entity deduplication\n * Enables automatic checking for duplicates on create/update operations\n *\n * @example\n * ```typescript\n * // Single field unique key with findOrCreate\n * uniqueKeys: [{ fields: ['email'], findOrCreate: true }]\n *\n * // Composite unique key\n * uniqueKeys: [{ fields: ['vin', 'make'], skipForDrafts: true }]\n *\n * // Multiple keys (OR logic - either can identify)\n * uniqueKeys: [\n * { fields: ['email'], findOrCreate: true },\n * { fields: ['phone'], findOrCreate: true }\n * ]\n * ```\n *\n * @version 0.1.0\n * @since 0.0.5\n * @author AMBROISE PARK Consulting\n */\ninterface UniqueKeyDefinition {\n /** Field names that together form the unique key (single or composite) */\n fields: string[];\n /** Custom error message when duplicate is found */\n errorMessage?: string;\n /** Skip validation for draft documents (default: false) */\n skipForDrafts?: boolean;\n /**\n * Return existing document instead of throwing error on duplicate (default: false)\n * When true, create operations will return the existing document if a match is found\n */\n findOrCreate?: boolean;\n}","UnsubscribeFn":"/**\n * Function to unsubscribe from auth state changes\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UnsubscribeFn = () => void;","UpdateEntityData":"/**\n * Data required for updating an entity\n * @template T - The entity type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UpdateEntityData<T extends Record<string, any>> {\n /** The schema to validate against */\n schema: dndevSchema<T>;\n /** The ID of the entity to update */\n id: string;\n /** The partial entity data to update */\n payload: Partial<T>;\n /** Optional idempotency key for preventing duplicate operations */\n idempotencyKey?: string;\n}","UpdateEntityRequest":"/**\n * Update entity request type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UpdateEntityRequest = v.InferOutput<typeof updateEntitySchema>;","UpdateEntityResponse":"/**\n * Update entity response interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UpdateEntityResponse {\n success: boolean;\n id: string;\n data: Record<string, any>;\n}","UpdateSubscriptionFn":"/**\n * Writes a subscription update for a user.\n *\n * @version 0.1.0\n * @since 0.5.0\n * @author AMBROISE PARK Consulting\n */\ntype UpdateSubscriptionFn = (userId: string, data: SubscriptionUpdate, authProvider: BillingAuthProvider) => Promise<void>;","UploadOptions":"/** Options for file upload */\ninterface UploadOptions {\n /** Folder path within the storage bucket (e.g. 'photos/2024'). Omit to upload to bucket root. */\n storagePath?: string;\n /** Custom filename override */\n filename?: string;\n /** Progress callback */\n onProgress?: UploadProgressCallback;\n /** AbortSignal to cancel the upload */\n signal?: AbortSignal;\n}","UploadProgressCallback":"/** Progress callback for upload operations (0-100) */\ntype UploadProgressCallback = (percent: number) => void;","UploadResult":"/** Result of an upload operation */\ninterface UploadResult {\n /** Public URL of the uploaded file */\n url: string;\n /** Storage path of the uploaded file (for deletion) */\n path: string;\n}","UseFunctionsCallResult":"/**\n * Result type for useFunctionsCall hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsCallResult<TData> {\n /** Execute the function call */\n call: (params?: object) => Promise<TData>;\n /** Whether the call is in progress */\n isLoading: boolean;\n /** Whether the call encountered an error */\n isError: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Call result data */\n data: TData | undefined;\n}","UseFunctionsMutationOptions":"/**\n * React Query mutation options for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsMutationOptions<TData, TVariables> {\n /** Number of retry attempts */\n retry?: number;\n /** Callback before mutation */\n onMutate?: (variables: TVariables) => void | Promise<void>;\n /** Callback for successful mutations */\n onSuccess?: (data: TData, variables: TVariables) => void;\n /** Callback for failed mutations */\n onError?: (error: FunctionError, variables: TVariables) => void;\n /** Callback after mutation (success or failure) */\n onSettled?: (data: TData | undefined, error: FunctionError | null, variables: TVariables) => void;\n}","UseFunctionsMutationResult":"/**\n * Result type for useFunctionsMutation hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsMutationResult<TData, TVariables> {\n /** Execute the mutation */\n mutate: (variables: TVariables) => void;\n /** Execute the mutation and return a promise */\n mutateAsync: (variables: TVariables) => Promise<TData>;\n /** Whether the mutation is in progress */\n isLoading: boolean;\n /** Whether the mutation encountered an error */\n isError: boolean;\n /** Whether the mutation succeeded */\n isSuccess: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Mutation result data */\n data: TData | undefined;\n /** Reset the mutation state */\n reset: () => void;\n}","UseFunctionsQueryOptions":"/**\n * React Query options for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsQueryOptions<TData> {\n /** Whether the query is enabled */\n enabled?: boolean;\n /** Time until data is considered stale */\n staleTime?: number;\n /** Time until inactive data is garbage collected */\n gcTime?: number;\n /** Number of retry attempts */\n retry?: number;\n /** Whether to keep previous data while fetching */\n keepPreviousData?: boolean;\n /** Whether to refetch on window focus */\n refetchOnWindowFocus?: boolean;\n /** Callback for successful queries */\n onSuccess?: (data: TData) => void;\n /** Callback for failed queries */\n onError?: (error: FunctionError) => void;\n}","UseFunctionsQueryResult":"/**\n * Result type for useFunctionsQuery hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseFunctionsQueryResult<TData> {\n /** Query data */\n data: TData | undefined;\n /** Whether the query is loading */\n isLoading: boolean;\n /** Whether the query encountered an error */\n isError: boolean;\n /** Error details if any */\n error: FunctionError | null;\n /** Whether the query is currently fetching (includes background refetch) */\n isFetching: boolean;\n /** Refetch the query */\n refetch: () => Promise<void>;\n}","UseTranslationOptionsEnhanced":"/**\n * Enhanced options for useTranslation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UseTranslationOptionsEnhanced<KPrefix> = Parameters<typeof useTranslation$1>[1] & {\n /** Whether this namespace is an app namespace */\n appNamespace?: boolean;\n}","UserContext":"/**\n * Provides a unified interface for accessing all user data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserContext {\n /** Core authentication data */\n auth: AuthUser;\n /** User profile information */\n profile: UserProfile;\n /** Subscription information */\n subscription: UserSubscription;\n}","UserProfile":"/**\n * Contains authorization and user preference information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserProfile {\n /** The user's unique identifier (matches AuthUser.id) */\n userId: string;\n /** The user's display name */\n displayName?: string;\n /** The user's email address */\n email?: string;\n /** The user's profile photo URL */\n photoURL?: string;\n /** Additional profile data */\n [key: string]: unknown;\n}","UserProviderData":"/**\n * Stores information specific to a user's identity from a particular authentication provider.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UserProviderData {\n /** The unique identifier for the authentication provider (e.g., 'google.com') */\n providerId: string;\n /** The user's unique identifier within this provider */\n uid: string;\n /** The user's email address from this provider */\n email?: string | null;\n /** The user's display name from this provider */\n displayName?: string | null;\n /** The user's photo URL from this provider */\n photoURL?: string | null;\n /** The user's phone number from this provider */\n phoneNumber?: string | null;\n /** Additional provider-specific data */\n [key: string]: any;\n}","UserRole":"/**\n * Type for user role names\n * Apps can extend this with their own custom roles\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES] | string;","UserSubscription":"/**\n * Type for user subscription data\n * Automatically derived from schema\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype UserSubscription = v.InferOutput<typeof UserSubscriptionSchema>;","ValidateBlockOptions":"/**\n * Optional options for `validateBlock`. When `caller` is present, the\n * widget's `surface` is matched against the caller's access tier after\n * envelope / kind / payload checks pass.\n */\ninterface ValidateBlockOptions {\n readonly caller?: {\n readonly access: CanvasCallerAccess;\n };\n}","ValidationRules":"/**\n * Enhanced validation rules with type checking\n * @template T - The field type\n *\n * @example\n * ```typescript\n * // Select field with dropdown options\n * validation: {\n * required: true,\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n * }\n *\n * // Text field with length validation\n * validation: {\n * required: true,\n * minLength: 3,\n * maxLength: 100\n * }\n *\n * // Number field with range validation\n * validation: {\n * required: true,\n * min: 0,\n * max: 1000\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ValidationRules<T extends string = FieldType> {\n /** Whether the field is required */\n required?: boolean;\n /** Minimum value (for number fields) */\n min?: T extends 'number' | 'range' | 'year' ? number : never;\n /** Maximum value (for number fields) */\n max?: T extends 'number' | 'range' | 'year' ? number : never;\n /** Minimum length (for text fields) */\n minLength?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? number : never;\n /** Maximum length (for text fields) */\n maxLength?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? number : never;\n /** Regex pattern (for text fields) */\n pattern?: T extends 'text' | 'textarea' | 'password' | 'email' | 'url' | 'tel' | 'iban' ? string : never;\n /**\n * Options for select, multiselect, and radio fields.\n * Can be:\n * - An array of option objects\n * - A function that returns an array (receives form values for dynamic options)\n *\n * For year fields, use `type: 'year'`:\n * ```typescript\n * year: {\n * type: 'year',\n * visibility: 'guest',\n * validation: {\n * required: true,\n * min: 1900, // Optional: defaults to 1900\n * max: 2100 // Optional: defaults to current year + 10\n * }\n * }\n * ```\n *\n * @example\n * ```typescript\n * // Static array\n * options: [\n * { value: 'active', label: 'Active' },\n * { value: 'inactive', label: 'Inactive' }\n * ]\n *\n * // Dynamic function (depends on other field values)\n * options: (formValues) => {\n * return getModelsForMake(formValues.make);\n * }\n * ```\n */\n options?: T extends 'select' | 'multiselect' | 'radio' | 'combobox' ? Array<{\n value: string;\n label: string;\n }> | ((formValues?: Record<string, any>) => Array<{\n value: string;\n label: string;\n }>) : never;\n /** Collection name for reference fields */\n reference?: T extends 'reference' ? string : never;\n /** Whether the field is nullable */\n nullable?: boolean;\n /**\n * Custom Valibot schema for this field\n *\n * When provided, this schema is used directly instead of the registry lookup.\n * This makes the entity the single source of truth for custom field schemas,\n * working everywhere (client + server) without separate registrations.\n *\n * @example\n * ```typescript\n * repairs: {\n * type: 'repairOperations',\n * visibility: 'admin',\n * validation: {\n * schema: v.array(v.object({\n * operation: v.string(),\n * cost: v.number()\n * }))\n * }\n * }\n * ```\n */\n schema?: v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;\n}","ValueTypeForField":"/**\n * Gets the value type for a specific field type\n * @template T - The field type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ValueTypeForField<T extends string> = T extends keyof FieldTypeToValue ? FieldTypeToValue[T] : unknown;","VerifiedToken":"/** Result of token verification */\ninterface VerifiedToken {\n /** The user's unique identifier */\n uid: string;\n /** Optional: email from the token */\n email?: string;\n /** Optional: additional claims embedded in the token */\n claims?: Record<string, unknown>;\n}","Visibility":"/**\n * Visibility level for entity fields\n * Controls who can SEE a field - hierarchical (each level sees levels below)\n *\n * Hierarchy: guest < user < admin < super\n *\n * - 'guest': Everyone (even unauthenticated)\n * - 'user': Authenticated users (see guest + user fields)\n * - 'admin': Admins (see guest + user + admin fields)\n * - 'super': Super admins (see guest + user + admin + super fields)\n * - 'technical': System fields (admins+ only, shown as read-only in forms)\n * - 'hidden': Never exposed to client (passwords, tokens, API keys)\n *\n * Override with `editable` for write permissions.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Visibility = (typeof VISIBILITY)[keyof typeof VISIBILITY];","WebhookEvent":"/**\n * Webhook event type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WebhookEvent = v.InferOutput<typeof WebhookEventSchema>;","WebhookEventData":"/**\n * Webhook event data interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface WebhookEventData {\n provider: string;\n eventType: string;\n data: Record<string, unknown>;\n signature?: string;\n timestamp: Date;\n}","WhereClause":"/**\n * Firestore where clause tuple\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WhereClause = [string, WhereOperator, any];","WhereOperator":"/**\n * Valid operators for database queries\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WhereOperator = '==' | '!=' | '<' | '<=' | '>' | '>=' | 'array-contains' | 'array-contains-any' | 'in' | 'not-in';","WidgetDef":"/**\n * Declarative widget definition — the static metadata a widget module\n * exports before it is paired with its React component for registration.\n *\n * Discriminator: `kind` (string literal, unique in the catalog).\n *\n * - `schema` validates the block `payload` for this kind.\n * - `actions` is a record of action-name -> schema validating that action's event payload.\n * - `surface` controls policy-layer gating.\n * - `defaultLifetime` is used by the agent-side emitter when the agent does not override it.\n */\ninterface WidgetDef<Kind extends string = string, PayloadSchema extends AnyValibotSchema = AnyValibotSchema, Actions extends Record<string, AnyValibotSchema> = Record<string, AnyValibotSchema>> {\n readonly kind: Kind;\n readonly schema: PayloadSchema;\n readonly actions: Actions;\n readonly surface: CanvasSurface;\n readonly defaultLifetime?: CanvasLifetime;\n}","WithMetadata":"/**\n * Utility type that adds metadata to a document.\n * @template T - The base document type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype WithMetadata<T> = T & EntityMetadata;","dndevSchema":"/**\n * Unified schema type that includes DoNotDev metadata\n * @template T - The entity/data type\n *\n * Unified schema type for all DoNotDev schemas\n * Uses Valibot's BaseSchema for validation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype dndevSchema<T> = v.BaseSchema<unknown, T, v.BaseIssue<unknown>> & {\n metadata: SchemaMetadata;\n}","AUTH_COMPUTED_KEYS":"/**\n * Auth computed keys - keys that are computed from store state\n */\ndeclare const AUTH_COMPUTED_KEYS: Set<keyof AuthAPI>;","AUTH_STORE_KEYS":"/**\n * Auth store keys - keys that come from Zustand store (reactive state)\n */\ndeclare const AUTH_STORE_KEYS: Set<keyof AuthAPI>;","AuthHardening":"declare class AuthHardening implements AuthHardeningContext {\n private readonly store;\n private readonly maxAttempts;\n private readonly lockoutMs;\n /** Expose for auth adapters to enforce idle session timeout */\n readonly sessionTimeoutMs: number;\n constructor(config?: AuthHardeningConfig);\n /**\n * Call BEFORE a sign-in attempt.\n * @throws {Error} if the identifier is currently locked.\n */\n checkLockout(identifier: string): void;\n /**\n * Call AFTER a failed sign-in attempt.\n * @returns current attempt count and whether the account is now locked.\n */\n recordFailure(identifier: string): LockoutResult;\n private _evictExpired;\n /**\n * Call AFTER a successful sign-in — resets the failure counter.\n */\n recordSuccess(identifier: string): void;\n /**\n * Check if a session has expired based on last activity timestamp.\n * @param lastActivityMs - `Date.now()` at last activity\n */\n isSessionExpired(lastActivityMs: number): boolean;\n /** Current entry for an identifier (for audit logging). */\n getEntry(identifier: string): LockoutEntry | undefined;\n}","BILLING_STORE_KEYS":"/**\n * Billing store keys - keys that come from local state (useState, not Zustand)\n * Note: `status` is computed, not stored\n */\ndeclare const BILLING_STORE_KEYS: Set<keyof BillingAPI>;","BaseStorageStrategy":"class BaseStorageStrategy implements IStorageStrategy {\n /**\n * Build a storage key with proper namespacing and scoping\n * @param key Base key\n * @param scope Storage scope\n * @param userId User ID for user scope\n * @param allowMissingUserId If true, returns null instead of throwing when userId is missing (for graceful degradation during sign out)\n * @returns Properly formatted storage key, or null if userId is missing and allowMissingUserId is true\n */\n protected buildKey(key: string, scope: 'user' | 'global' | 'session', userId?: string | null, allowMissingUserId?: boolean): string | null;\n /**\n * Abstract method to retrieve data from storage\n */\n abstract get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Abstract method to store data\n */\n abstract set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Abstract method to remove data from storage\n */\n abstract remove(key: string): Promise<void>;\n /**\n * Abstract method to clear all data in the specified scope\n */\n abstract clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n}","CONSENT_LEVELS":"/**\n * Consent category constants\n * Must match CONSENT_CATEGORY from @donotdev/types\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const CONSENT_LEVELS: {\n readonly NECESSARY: \"necessary\";\n readonly FUNCTIONAL: \"functional\";\n readonly ANALYTICS: \"analytics\";\n readonly MARKETING: \"marketing\";\n}","CURRENCY_MAP":"/**\n * Top ~50 currencies: 3-letter code, locale, symbol.\n * Unknown codes: getCurrencyLocale → 'en-US', getCurrencySymbol → code as-is.\n */\ndeclare const CURRENCY_MAP: Record<string, CurrencyEntry>;","ClaimsCache":"/**\n * ClaimsCache service\n *\n * Handles offline claims caching with graceful degradation:\n * - Server: Returns {} (safe default, no claims checking on server)\n * - Online: Always verify with server, update cache\n * - Offline: Use cached claims if offlineTrustEnabled=true\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class ClaimsCache {\n private offlineTrustEnabled;\n private storageKey;\n private userId;\n private storage;\n constructor(options?: ClaimsCacheOptions);\n /**\n * CSR/SSR safe client detection\n */\n private isClient;\n /**\n * CSR/SSR safe network detection\n * Server: Returns false (can't detect network)\n * Client: Returns navigator.onLine\n */\n private isOnline;\n /**\n * Get claims with graceful degradation\n *\n * Server: Returns {} (safe default, no claims checking on server)\n * Online: Always verify with server, update cache\n * Offline: Use cached claims if offlineTrustEnabled=true\n *\n * @param verifyFn - Function to verify claims with server\n * @returns Claims object\n */\n getClaims<T extends Claims = Claims>(verifyFn: () => Promise<T>): Promise<T>;\n /**\n * Get cached claims from storage\n */\n private getCachedClaims;\n /**\n * Set claims in cache\n */\n setClaims<T extends Claims = Claims>(claims: T): Promise<void>;\n /**\n * Clear cached claims\n */\n clearClaims(): Promise<void>;\n /**\n * Get storage key with user scoping\n */\n private getStorageKey;\n /**\n * Update user ID (for user-scoped storage)\n */\n setUserId(userId: string | null): void;\n /**\n * Update offline trust setting\n */\n setOfflineTrustEnabled(enabled: boolean): void;\n}","ConditionBuilder":"/**\n * Chainable condition builder.\n * Wraps a ConditionExpression and provides .or()/.and() combinators.\n * Implements ConditionBuilderLike from @donotdev/types.\n */\ndeclare class ConditionBuilder {\n /** The underlying condition expression (serializable data) */\n readonly expression: ConditionExpression;\n constructor(expression: ConditionExpression);\n /** The discriminant for ConditionExpression — delegates to inner expression */\n get type(): ConditionExpression['type'];\n /** Combine with OR logic */\n or(other: ConditionExpression | ConditionBuilder): ConditionBuilder;\n /** Combine with AND logic */\n and(other: ConditionExpression | ConditionBuilder): ConditionBuilder;\n}","DEFAULT_CRUD_TIMEOUT":"/** Default timeout for CRUD operations (15 seconds) */\ndeclare const DEFAULT_CRUD_TIMEOUT = 15000;","DEFAULT_ERROR_MESSAGES":"/**\n * Default error messages for standard error codes\n * These provide a fallback when no specific message is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const DEFAULT_ERROR_MESSAGES: Record<ErrorCode, string>;","DEFAULT_UPLOAD_TIMEOUT":"/** Default timeout for upload operations (30 seconds) */\ndeclare const DEFAULT_UPLOAD_TIMEOUT = 30000;","DEGRADED_AI_API":"/**\n * Degraded AI API - returned when @donotdev/ai is not installed or not available\n */\ndeclare const DEGRADED_AI_API: AIAPI;","DEGRADED_AUTH_API":"/**\n * Degraded Auth API - returned when @donotdev/auth is not installed or not available\n */\ndeclare const DEGRADED_AUTH_API: AuthAPI;","DEGRADED_BILLING_API":"/**\n * Degraded Billing API - returned when @donotdev/billing is not installed or not available\n */\ndeclare const DEGRADED_BILLING_API: BillingAPI;","DEGRADED_CRUD_API":"/**\n * Degraded CRUD API - returned when @donotdev/crud is not installed or not available\n */\ndeclare const DEGRADED_CRUD_API: CrudAPI;","DEGRADED_OAUTH_API":"/**\n * Degraded OAuth API - returned when @donotdev/oauth is not installed or not available\n */\ndeclare const DEGRADED_OAUTH_API: OAuthAPI;","EventEmitter":"/**\n * Enhanced EventEmitter implementation with type safety, event caching, and additional features\n *\n * This EventEmitter provides a robust event system with:\n * - Type safety for event handlers\n * - One-time listeners with automatic cleanup\n * - Context binding for handlers\n * - Listener count warnings for debugging\n * - Error handling for handler exceptions\n * - Memory leak prevention\n * - Event caching for race condition handling\n * - Automatic cache cleanup\n *\n * **Key Features:**\n * - Subscribe/unsubscribe to events\n * - One-time listeners (auto-remove after first call)\n * - Context binding for method handlers\n * - Listener count monitoring and warnings\n * - Error isolation (one handler error doesn't affect others)\n * - Memory leak prevention with proper cleanup\n * - Event caching to handle initialization race conditions\n * - Automatic cache cleanup (3-minute TTL)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * **Event Caching:**\n * Events are automatically cached when emitted to handle race conditions during\n * feature initialization. Listeners can retrieve cached events on startup to\n * ensure they don't miss events that occurred before they were initialized.\n *\n * **Usage Pattern:**\n * ```typescript\n * const emitter = new EventEmitter();\n *\n * // Subscribe to event\n * const unsubscribe = emitter.on('myEvent', (data) => {\n * console.log('Event received:', data);\n * });\n *\n * // Emit event (automatically cached)\n * emitter.emit('myEvent', { message: 'Hello' });\n *\n * // Get cached events for race condition handling\n * const cachedEvents = emitter.getCachedEvents('myEvent');\n *\n * // Unsubscribe\n * unsubscribe();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class EventEmitter {\n /**\n * Map of event names to arrays of handlers\n * @private\n */\n private events;\n /**\n * Map of event names to cached event data for race condition handling\n * @private\n */\n private eventCache;\n /**\n * Maximum number of listeners per event before warnings\n * @private\n */\n private maxListeners;\n /**\n * Cache TTL in milliseconds (3 minutes)\n * @private\n */\n private readonly cacheTTL;\n /**\n * Subscribes to an event with optional context binding\n *\n * **Usage:**\n * ```typescript\n * // Basic subscription\n * const unsubscribe = emitter.on('myEvent', (data) => {\n * console.log('Event received:', data);\n * });\n *\n * // With context binding\n * const unsubscribe = emitter.on('myEvent', handler, this);\n * ```\n *\n * **Features:**\n * - Returns unsubscribe function for easy cleanup\n * - Supports context binding for method handlers\n * - Validates handler is a function\n * - Monitors listener count for debugging\n *\n * @param eventName - Name of the event to listen for\n * @param handler - Function to call when event is emitted\n * @param context - Optional context to bind handler to\n * @returns Function to unsubscribe from the event\n * @throws TypeError if handler is not a function\n */\n on<T = any>(eventName: string, handler: InternalEventHandler, context?: T): () => void;\n /**\n * Subscribes to an event for a single emission (auto-removes after first call)\n *\n * **Usage:**\n * ```typescript\n * // One-time listener\n * const unsubscribe = emitter.once('myEvent', (data) => {\n * console.log('Event received once:', data);\n * });\n *\n * // With context binding\n * const unsubscribe = emitter.once('myEvent', handler, this);\n * ```\n *\n * **Features:**\n * - Automatically removes listener after first call\n * - Returns unsubscribe function (though not needed for one-time)\n * - Supports context binding for method handlers\n * - Useful for initialization events or one-time callbacks\n *\n * @param eventName - Name of the event to listen for\n * @param handler - Function to call when event is emitted\n * @param context - Optional context to bind handler to\n * @returns Function to unsubscribe from the event (though auto-removes)\n * @throws TypeError if handler is not a function\n */\n once<T = any>(eventName: string, handler: InternalEventHandler, context?: T): () => void;\n /**\n * Unsubscribe from an event\n *\n * @param eventName Event name\n * @param handler Event handler function to remove\n * @returns Whether the handler was removed\n */\n off(eventName: string, handler: InternalEventHandler): boolean;\n /**\n * Emits an event with arguments to all registered handlers and caches the event\n *\n * **Usage:**\n * ```typescript\n * // Emit with data (automatically cached)\n * emitter.emit('myEvent', { message: 'Hello' });\n *\n * // Emit with multiple arguments (all arguments cached)\n * emitter.emit('myEvent', data1, data2, data3);\n * ```\n *\n * **Features:**\n * - Calls all registered handlers for the event\n * - Handles one-time listeners (auto-removes after call)\n * - Isolates errors (one handler error doesn't affect others)\n * - Returns whether any handlers were called\n * - Supports any number of arguments\n * - Automatically caches event data for race condition handling\n * - Performs automatic cache cleanup\n *\n * **Event Caching:**\n * Events are automatically cached when emitted to handle race conditions during\n * feature initialization. The cache has a 3-minute TTL and is automatically\n * cleaned up to prevent memory leaks.\n *\n * **Error Handling:**\n * - Individual handler errors are caught and logged\n * - Errors don't prevent other handlers from being called\n * - Console errors are logged for debugging\n * - Cache operations are isolated from handler errors\n *\n * @param eventName - Name of the event to emit\n * @param args - Arguments to pass to all handlers and cache\n * @returns True if any handlers were called, false if no handlers exist\n */\n emit(eventName: string, ...args: any[]): boolean;\n /**\n * Check if an event has subscribers\n *\n * @param eventName Event name\n * @returns Whether the event has subscribers\n */\n hasListeners(eventName: string): boolean;\n /**\n * Get the number of subscribers for an event\n *\n * @param eventName Event name\n * @returns Number of subscribers\n */\n listenerCount(eventName: string): number;\n /**\n * Get all registered event names\n *\n * @returns Array of event names\n */\n eventNames(): string[];\n /**\n * Get all listeners for an event\n *\n * @param eventName Event name\n * @returns Array of handler functions\n */\n listeners(eventName: string): InternalEventHandler[];\n /**\n * Remove all event listeners\n *\n * @param eventName Optional event name to remove listeners for\n */\n removeAllListeners(eventName?: string): void;\n /**\n * Set the maximum number of listeners per event before warnings\n *\n * @param n Maximum number of listeners\n * @returns This instance for chaining\n */\n setMaxListeners(n: number): this;\n /**\n * Get the maximum number of listeners per event\n *\n * @returns Maximum number of listeners\n */\n getMaxListeners(): number;\n /**\n * Get or create the listener array for an event\n *\n * @param eventName Event name\n * @returns Array of listeners\n * @private\n */\n private getListeners;\n /**\n * Check if we have too many listeners and warn if necessary\n *\n * @param eventName Event name\n * @private\n */\n private checkListenerCount;\n /**\n * Cache an event for race condition handling during feature initialization\n *\n * **Purpose:**\n * Events are cached when emitted to handle race conditions where listeners\n * might be initialized after events have already been emitted. This ensures\n * that listeners can retrieve missed events during their initialization.\n *\n * **Automatic Cleanup:**\n * The cache automatically removes events older than the TTL (3 minutes) to\n * prevent memory leaks and ensure only recent events are available.\n *\n * **Usage:**\n * This method is called automatically by the `emit()` method. Manual usage\n * is typically not required unless implementing custom event handling.\n *\n * @param eventName - Name of the event to cache\n * @param eventData - Event data to cache (array of arguments)\n * @private\n */\n private cacheEvent;\n /**\n * Get cached events for a specific event type\n *\n * **Purpose:**\n * Retrieves events that were emitted before a listener was initialized,\n * allowing listeners to catch up on missed events during startup.\n *\n * **Use Case:**\n * This is primarily used by BaseListener implementations during their\n * initialization to process events that occurred before they were ready.\n *\n * **Cache Behavior:**\n * - Returns events from the last 3 minutes\n * - Automatically excludes expired events\n * - Returns empty array if no cached events exist\n *\n * **Usage:**\n * ```typescript\n * // In BaseListener.initialize()\n * const cachedEvents = this.eventEmitter.getCachedEvents('MY_EVENT');\n * cachedEvents.forEach(eventData => {\n * this.handleEvent('MY_EVENT', eventData);\n * });\n * ```\n *\n * @param eventName - Name of the event to retrieve cached data for\n * @returns Array of cached event data (array of arguments for each event)\n */\n getCachedEvents(eventName: string): any[][];\n /**\n * Clear cached events for a specific event type\n *\n * **Purpose:**\n * Manually clears cached events for a specific event type. This is useful\n * for memory management or when cached events are no longer needed.\n *\n * **Use Cases:**\n * - Memory cleanup after processing cached events\n * - Resetting event state during testing\n * - Manual cache management for specific events\n *\n * **Usage:**\n * ```typescript\n * // Clear cached events after processing\n * const cachedEvents = emitter.getCachedEvents('MY_EVENT');\n * // Process events...\n * emitter.clearCachedEvents('MY_EVENT');\n * ```\n *\n * @param eventName - Name of the event to clear cache for\n */\n clearCachedEvents(eventName: string): void;\n /**\n * Clear all cached events\n *\n * **Purpose:**\n * Clears all cached events across all event types. This is useful for\n * complete cache reset or memory cleanup.\n *\n * **Use Cases:**\n * - Complete cache reset during testing\n * - Memory cleanup in low-memory environments\n * - Application state reset\n *\n * **Usage:**\n * ```typescript\n * // Clear all cached events\n * emitter.clearAllCachedEvents();\n * ```\n */\n clearAllCachedEvents(): void;\n /**\n * Get cache statistics for monitoring and debugging\n *\n * **Purpose:**\n * Provides information about the current cache state for monitoring,\n * debugging, and performance analysis.\n *\n * **Returns:**\n * Object containing cache statistics including event counts, memory usage\n * estimates, and cache health information.\n *\n * **Usage:**\n * ```typescript\n * const stats = emitter.getCacheStats();\n * console.log(`Cache has ${stats.totalEvents} events across ${stats.eventTypes} types`);\n * ```\n *\n * @returns Object containing cache statistics\n */\n getCacheStats(): {\n totalEvents: number;\n eventTypes: number;\n oldestEvent: number | null;\n newestEvent: number | null;\n memoryEstimate: string;\n };\n /**\n * Clean up expired events from the cache\n *\n * **Purpose:**\n * Removes events older than the TTL (3 minutes) from the cache to prevent\n * memory leaks and ensure only recent events are available.\n *\n * **Automatic Execution:**\n * This method is called automatically during event caching and retrieval\n * to maintain cache health. Manual calls are typically not required.\n *\n * @param eventName - Name of the event to clean up (optional, cleans all if not provided)\n * @private\n */\n private cleanupCache;\n}","FRAMEWORK_FEATURES":"/**\n * Available framework features\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const FRAMEWORK_FEATURES: {\n readonly AUTH: \"auth\";\n readonly OAUTH: \"oauth\";\n readonly I18N: \"i18n\";\n readonly BILLING: \"billing\";\n readonly ROUTES: \"routes\";\n readonly THEMES: \"themes\";\n readonly COMPONENTS: \"components\";\n readonly CRUD: \"crud\";\n readonly FORMS: \"forms\";\n readonly REALTIME: \"realtime\";\n readonly STORAGE: \"storage\";\n readonly AI: \"ai\";\n}","HybridStorageStrategy":"/**\n * Hybrid storage strategy that combines local and cloud storage\n * Premium users get both local caching and cloud persistence\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class HybridStorageStrategy implements IStorageStrategy {\n /**\n * Local storage strategy for caching and fallback\n */\n private localStrategy;\n /**\n * User ID for scoped storage\n */\n private userId;\n /**\n * API endpoint for cloud storage\n */\n private apiEndpoint;\n /**\n * Optional auth token getter for authenticated cloud requests\n */\n private getAuthToken?;\n /**\n * Create a new HybridStorageStrategy\n * @param userId User ID for user-scoped storage (required)\n * @param apiEndpoint Optional API endpoint for cloud storage\n * @param getAuthToken Optional async function that returns the current auth token\n */\n constructor(userId: string, apiEndpoint?: string, getAuthToken?: () => Promise<string | null>);\n /**\n * Build headers for cloud API requests, including Authorization if available\n */\n private buildHeaders;\n /**\n * Retrieve data from storage\n * First checks local storage for cached data, then falls back to cloud if needed\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data in both local and cloud storage.\n *\n * Local storage is the source of truth - writes always succeed locally first.\n * Cloud sync is fire-and-forget: failures are logged as warnings, never thrown.\n * This ensures offline/degraded network never crashes the consumer's app.\n *\n * **Do NOT await cloud writes here.** Same pattern as {@link remove}.\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from both local and cloud storage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope from both local and cloud storage\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n /**\n * Build a storage key with proper namespacing and scoping\n * @param key Base key\n * @param scope Storage scope\n * @param userId User ID for user scope\n * @param allowMissingUserId If true, returns null instead of throwing when userId is missing (for graceful degradation during sign out)\n * @returns Properly formatted storage key, or null if userId is missing and allowMissingUserId is true\n */\n private buildKey;\n /**\n * Get data from cloud storage\n * @private\n */\n private getFromCloud;\n /**\n * Store data in cloud storage\n * @private\n */\n private setToCloud;\n /**\n * Remove data from cloud storage\n * @private\n */\n private removeFromCloud;\n /**\n * Clear all data in the specified scope from cloud storage\n * @private\n */\n private clearFromCloud;\n}","LANGUAGE_COOKIE":"/**\n * Cookie holding the visitor's language (BCP-47 code). Written by the language store\n * on every resolution and change; read by the server to render in that language.\n * Functional cookie (interface preference), no consent required.\n */\ndeclare const LANGUAGE_COOKIE = \"dndev-lang\";","LocalStorageStrategy":"/**\n * Storage strategy using browser's localStorage\n *\n * Provides client-side storage using the browser's localStorage API.\n * Available to all users regardless of subscription tier.\n *\n * **Capabilities:**\n * - User-scoped storage (when userId is provided)\n * - Global storage for shared data\n * - Optional encryption for sensitive data\n * - Automatic key scoping and validation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * **Limitations:**\n * - Limited by browser storage quotas\n * - Data is lost when localStorage is cleared\n * - No cloud synchronization\n * - No cross-device data sharing\n */\ndeclare class LocalStorageStrategy extends BaseStorageStrategy {\n /**\n * User ID for user-scoped storage\n * Can be null for non-authenticated users (only global/session storage available)\n */\n private userId;\n /**\n * Create a new LocalStorageStrategy\n * @param userId Optional user ID for user-scoped storage\n */\n constructor(userId?: string | null);\n /**\n * Set the current user ID\n * @param userId User ID or null\n */\n setUserId(userId: string | null): void;\n /**\n * Retrieve data from localStorage\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data in localStorage\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from localStorage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n}","OAUTH_STORE_KEYS":"/**\n * OAuth store keys - keys that come from Zustand store (reactive state)\n */\ndeclare const OAUTH_STORE_KEYS: Set<keyof OAuthAPI>;","SingletonManager":"/**\n * Singleton manager for complex initialization scenarios\n * Provides async initialization with proper error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class SingletonManager {\n private static instances;\n private static initializing;\n private static initialized;\n /**\n * Get or create a singleton instance with async initialization\n *\n * @param key - Unique key for the singleton\n * @param factory - Factory function that returns the instance\n * @param options - Initialization options\n * @returns Promise that resolves to the singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static getOrCreate<T>(key: string, factory: () => Promise<T> | T, options?: {\n ssrSafe?: boolean;\n timeout?: number;\n cacheFailures?: boolean;\n fallbackFactory?: () => T;\n }): Promise<T>;\n /**\n * Check if a singleton is initialized\n *\n * @param key - Singleton key\n * @returns True if initialized\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static isInitialized(key: string): boolean;\n /**\n * Clear a singleton instance (for testing)\n *\n * @param key - Singleton key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static clear(key: string): void;\n /**\n * Clear all singleton instances (for testing)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\n static clearAll(): void;\n}","StorageManager":"/**\n * Storage manager implementation\n * Handles storage operations with automatic strategy selection based on user tier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class StorageManager implements IStorageManager {\n /**\n * Current storage strategy\n */\n private strategy;\n private initialized;\n private userId;\n private isPro;\n /**\n * Create a new StorageManager\n * @param initialStrategy Initial storage strategy\n */\n constructor(initialStrategy?: IStorageStrategy);\n /**\n * Lazily initialize the event listeners\n */\n private initialize;\n /**\n * Set the storage strategy\n * @param strategy New storage strategy\n */\n setStrategy(strategy: IStorageStrategy): void;\n /**\n * Update user information and select appropriate strategy\n * @param userId User ID or null\n * @param isPro Whether user has pro/enterprise tier\n */\n updateUser(userId: string | null, isPro: boolean): void;\n private updateStrategy;\n /**\n * Retrieve data from storage\n */\n get<T>(key: string, options?: StorageOptions): Promise<T | null>;\n /**\n * Store data\n */\n set<T>(key: string, value: T, options?: StorageOptions): Promise<void>;\n /**\n * Remove data from storage\n */\n remove(key: string): Promise<void>;\n /**\n * Clear all data in the specified scope\n */\n clear(scope?: 'user' | 'global' | 'session'): Promise<void>;\n /**\n * Store sensitive data with encryption\n */\n setSecure<T>(key: string, value: T, options?: Omit<StorageOptions, 'encryption'>): Promise<void>;\n /**\n * Retrieve sensitive data with decryption\n */\n getSecure<T>(key: string, options?: Omit<StorageOptions, 'encryption'>): Promise<T | null>;\n}","TokenManager":"/**\n * TokenManager handles authentication token lifecycle including\n * storage, automatic refresh, expiration detection, and status tracking\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class TokenManager {\n private refreshTimerId;\n private refreshAttempts;\n private refreshBuffer;\n private maxRefreshAttempts;\n private autoRefresh;\n private authInstance;\n private onTokenExpired?;\n private onFatalError?;\n private refreshCallback?;\n private tokenInfo;\n /**\n * Creates a new TokenManager\n *\n * @param authInstance Optional auth instance for automatic refresh\n * @param options Configuration options\n */\n constructor(authInstance?: unknown, options?: TokenManagerOptions);\n /**\n * Initialize token management with token information\n *\n * @param tokenInfo Initial token information\n */\n initialize(tokenInfo: Omit<ExtendedTokenInfo, 'status'>): void;\n /**\n * Get the current token information\n *\n * @returns Current token information\n */\n getTokenInfo(): ExtendedTokenInfo;\n /**\n * Reset the token manager\n * Clears token information and cancels scheduled refreshes\n */\n reset(): void;\n /**\n * Force an immediate token refresh\n *\n * @param user Auth user with getIdToken/getIdTokenResult methods\n * @returns Promise resolving to the refreshed token or null\n */\n forceRefresh(user?: AuthUserLike | null): Promise<string | null>;\n /**\n * Get a valid token, automatically refreshing if needed\n *\n * @returns Promise resolving to a valid token or null\n */\n getValidToken(): Promise<string | null>;\n /**\n * Register a callback for token refresh\n *\n * @param callback Function that returns a promise resolving to success status\n * @returns Unsubscribe function\n */\n onRefreshNeeded(callback: () => Promise<boolean>): () => void;\n /**\n * Update token information and emit the change\n *\n * @param tokenInfo New token information (partial)\n */\n private updateTokenInfo;\n /**\n * Calculate token status based on expiration time\n *\n * @param expiresAt Token expiration date\n * @returns Current token status\n */\n private calculateTokenStatus;\n /**\n * Schedule token refresh based on expiration time\n *\n * @param expiresAt Token expiration date\n */\n private scheduleRefresh;\n /**\n * Handle errors during token refresh\n *\n * @param error Error that occurred\n */\n private handleRefreshError;\n /**\n * Handle general errors\n *\n * @param error Error that occurred\n */\n private handleError;\n /**\n * Clear the refresh timer\n */\n private clearRefreshTimer;\n}","ViewportHandler":"/**\n * Viewport handler class\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare class ViewportHandler {\n private options;\n private visibleItems;\n private hasTriggered;\n constructor(options?: ViewportDetectionOptions);\n /**\n * Handle intersection observer entry\n */\n handleIntersection(entry: IntersectionObserverEntry, container?: Element): ViewportDetectionResult;\n /**\n * Handle scroll event for item tracking\n */\n handleScroll(container: Element): ViewportDetectionResult;\n /**\n * Update visible items based on container children\n */\n private updateVisibleItems;\n /**\n * Check if element is in viewport\n */\n private isElementInViewport;\n}","areFeaturesAvailable":"/**\n * Check if multiple features are available\n * @param features Array of features to check\n * @returns True if all features are available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function areFeaturesAvailable(features: FrameworkFeature[]): boolean;","canRedirectExternally":"/**\n * Check if external redirects are available\n *\n * Useful for conditional rendering or fallback behavior.\n *\n * @returns True if external redirects are available (client-side)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function canRedirectExternally(): boolean;","captureError":"/**\n * Capture error with Sentry\n * @param error Error to capture\n * @param context Additional context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function captureError(error: Error, context?: Record<string, any>): void;","captureErrorToSentry":"/**\n * Captures an error to Sentry with additional context\n * Works on both client (@sentry/react) and server (@sentry/node)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param error - The error to capture\n * @param source - The detected error source\n * @param context - Additional context to include\n */\ndeclare function captureErrorToSentry(error: DoNotDevError, source: ErrorSource, context?: Record<string, any>): void;","captureMessage":"/**\n * Capture message with Sentry\n * @param message Message to capture\n * @param level Log level\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function captureMessage(message: string, level?: 'info' | 'warning' | 'error'): void;","cleanupSentry":"/**\n * Safely cleans up Sentry resources.\n */\ndeclare function cleanupSentry(): Promise<void>;","clearFeatureCache":"/**\n * Clear feature cache (useful for testing or dynamic config changes)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearFeatureCache(): void;","clearGlobalSingleton":"/**\n * Clear a global singleton. **Only for testing.**\n *\n * @param key - The singleton key to clear\n */\ndeclare function clearGlobalSingleton(key: string): void;","clearLocalStorage":"/**\n * Safe localStorage.clear with error handling\n * @returns Whether the operation was successful\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearLocalStorage(): boolean;","clearPartnerCache":"/**\n * Clear partner cache (useful for testing or when environment variables change)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearPartnerCache(): void;","commonErrorCodeMappings":"/**\n * Common error code mappings for most services\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const commonErrorCodeMappings: Record<string, ErrorCode>;","compactToISOString":"/**\n * Convert compact date format (YYYYMMDD:HHMM) to ISO string\n * Format: 20251225:0000 → 2025-12-25T00:00:00.000Z\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param compactDate - Date in YYYYMMDD:HHMM format\n * @returns ISO string representation\n * @throws Error if format is invalid\n */\ndeclare function compactToISOString(compactDate: string): string;","configureProviders":"/**\n * Configure all providers for the framework.\n * Must be called once at app startup, before any component uses `useCrud`, auth, or storage.\n * Typically called from a dedicated module (e.g. `config/providers.ts`) imported by main.tsx.\n *\n * @param providers - At least `crud`; optionally `auth`, `storage`, `serverAuth`, `callable`\n * @throws Does not throw; logs a warning if called more than once (use `resetProviders()` in tests)\n */\ndeclare function configureProviders(providers: DndevProviders): void;","cooldown":"/**\n * Creates a function that executes once and then ignores subsequent calls\n * for the specified amount of time.\n *\n * @param func The function to rate-limit\n * @param wait The number of milliseconds to cool down\n * @returns A rate-limited function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function cooldown<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;","createAsyncSingleton":"/**\n * Creates an async singleton getter function for async factory functions\n *\n * @param asyncFactory - Async factory function that returns a Promise<T>\n * @returns Function that returns a Promise<T> for the singleton instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createAsyncSingleton<T>(asyncFactory: () => Promise<T>): () => Promise<T>;","createErrorHandler":"/**\n * Creates an error handler that converts any type of error to DoNotDevError format\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param config Configuration for the error handler\n * @returns A function that converts errors to DoNotDevErrors\n */\ndeclare function createErrorHandler(config: ErrorHandlerConfig): ErrorHandlerFunction;","createMetadata":"/**\n * Creates metadata for a new document with audit trail information\n *\n * **Purpose:** Provides standardized metadata for database documents\n * including creation timestamps and user tracking for audit purposes.\n *\n * **Features:**\n * - ISO timestamp format for consistency\n * - User ID tracking for audit trails\n * - Both creation and update fields initialized\n * - Ready for immediate database insertion\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param userId - The ID of the user creating the document\n * @returns Metadata object with timestamps and user IDs\n *\n * @example\n * ```typescript\n * const user = { id: 'user123', name: 'John Doe' };\n * const metadata = createMetadata(user.id);\n *\n * const newPost = {\n * title: 'My Post',\n * content: 'Post content...',\n * ...metadata\n * };\n *\n * await firestore.collection('posts').add(newPost);\n * ```\n */\ndeclare function createMetadata(userId: string): {\n createdAt: string;\n updatedAt: string;\n createdById: string;\n updatedById: string;\n}","createMethodProxy":"/**\n * Creates a method proxy for a singleton getter\n * This allows direct method access without calling getInstance() first\n *\n * @param getInstance - Singleton getter function\n * @param methods - Array of method names to proxy\n * @returns Proxy object with direct method access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createMethodProxy<T extends object>(getInstance: () => T, methods: (keyof T)[]): T;","createSingleton":"/**\n * Creates a singleton getter function for a class or factory function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param ClassOrFactory - Class constructor or factory function\n * @param args - Constructor arguments (if ClassOrFactory is a class)\n * @returns Function that returns the singleton instance\n */\ndeclare function createSingleton<T>(ClassOrFactory: (new (...args: any[]) => T) | (() => T), ...args: any[]): () => T;","createSingletonWithParams":"/**\n * Creates a singleton getter function for a class with parameters\n * This version allows passing parameters to the constructor\n *\n * @param ClassOrFactory - Class constructor or factory function\n * @returns Function that returns the singleton instance with parameters\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createSingletonWithParams<T>(ClassOrFactory: (new (...args: any[]) => T) | ((...args: any[]) => T)): (...args: any[]) => T;","createViewportHandler":"/**\n * Create a viewport handler instance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createViewportHandler(options?: ViewportDetectionOptions): ViewportHandler;","debounce":"/**\n * Creates a debounced function that delays invoking the provided function\n * until after the specified wait time has elapsed since the last invocation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param func The function to debounce\n * @param wait The number of milliseconds to delay\n * @param immediate Whether to invoke the function on the leading edge instead of trailing\n * @returns A debounced version of the function\n */\ndeclare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean): (...args: Parameters<T>) => void;","debugPlatformDetection":"/**\n * Debug platform detection\n * Development helper to log platform detection details\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function debugPlatformDetection(): void;","decryptData":"/**\n * Decrypt data using AES-GCM\n * @param encryptedData Encrypted string (base64)\n * @returns Promise resolving to decrypted data (parsed from JSON)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function decryptData(encryptedData: string): Promise<string | object | number | boolean | null>;","delay":"/**\n * Execute a function after a specified delay\n *\n * @param func Function to execute\n * @param delay Delay in milliseconds\n * @returns A function that when called will execute after the delay\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function delay<T extends (...args: any[]) => any>(func: T, delay?: number): (...args: Parameters<T>) => void;","deleteCookie":"/**\n * Delete a cookie by setting it to expire in the past\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function deleteCookie(name: string, options?: Partial<CookieOptions>): void;","detectBrowser":"/**\n * Detect browser information from user agent and navigator\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectBrowser(): BrowserInfo;","detectErrorSource":"/**\n * Detects the source of an error based on its properties and structure\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param error - The error to analyze\n * @returns The detected error source\n */\ndeclare function detectErrorSource(error: unknown): ErrorSource;","detectFeatures":"/**\n * Detect feature support\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectFeatures(): FeatureSupport;","detectPlatform":"/**\n * Simple platform detection\n *\n * Detects the current platform (Vite or Next.js) and environment mode.\n * Provides cached results for performance.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectPlatform(): Platform;","detectPlatformInfo":"/**\n * Detailed platform detection with unified config integration\n * Cached after first call for optimal performance\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectPlatformInfo(): PlatformInfo;","detectStorageError":"/**\n * Detect storage error type from exception\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function detectStorageError(error: unknown): StorageError;","encryptData":"/**\n * Encrypt data using AES-GCM\n * @param data Data to encrypt (will be JSON stringified)\n * @returns Promise resolving to encrypted string (base64)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function encryptData(data: string | object | number | boolean): Promise<string>;","ensureSpreadable":"/**\n * Creates a spreadable object from validated data, ensuring it can be safely spread.\n * Use this when you need to spread validated data and add additional properties (like `id`).\n *\n * @param data - The validated data (should be an object)\n * @returns A Record that can be safely spread\n *\n * @example\n * ```typescript\n * const parsed = validateWithSchema(schema, data, 'MyAdapter.get');\n * return { ...ensureSpreadable(parsed), id } as T;\n * ```\n */\ndeclare function ensureSpreadable<T>(data: T): Record<string, unknown>;","evaluateCondition":"/**\n * Evaluate a condition expression (node or group) against form values.\n *\n * @param condition - The condition expression or ConditionBuilder to evaluate\n * @param formValues - Current form values (flat object or nested for workflows)\n * @returns Whether the condition is satisfied\n *\n * @example\n * ```typescript\n * const cond = when('status').equals('active');\n * const result = evaluateCondition(cond, { status: 'active' }); // true\n * ```\n */\ndeclare function evaluateCondition(condition: ConditionInput, formValues: Record<string, unknown>): boolean;","evaluateFieldConditions":"/**\n * Evaluate all conditions for a field and return the computed state.\n *\n * @param behavior - The ConditionalBehavior from the field definition\n * @param formValues - Current form values\n * @returns ConditionResult with visible/disabled/required/readonly booleans\n */\ndeclare function evaluateFieldConditions(behavior: ConditionalBehavior | undefined, formValues: Record<string, unknown>): ConditionResult;","filterVisibleFields":"/**\n * Filters the fields of a data object based on visibility rules defined\n * in a Valibot schema and the user's role. When options (documentData, uid, ownership)\n * are provided, fields with visibility: 'owner' are included only if uid matches\n * one of ownership.ownerFields in documentData.\n *\n * @template T - The expected type of the data object\n * @param data - The document data object to filter\n * @param schema - The Valibot schema with visibility metadata on each field\n * @param userRole - The current user's role (guest, user, admin, super)\n * @param options - Optional: documentData, uid, ownership for owner-level visibility\n * @returns A new object containing only the fields visible to the user\n */\ndeclare function filterVisibleFields<T extends Record<string, any>>(data: T | null | undefined, schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>, userRole: UserRole, options?: FilterVisibleFieldsOptions): Partial<T>;","formatCookieList":"/**\n * Get human-readable cookie list for a category\n */\ndeclare function formatCookieList(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): string;","formatCurrency":"/**\n * Format currency value with proper locale based on currency code\n *\n * @param value - Numeric value to format\n * @param currencyCode - ISO 4217 currency code\n * @param options - Additional Intl.NumberFormat options\n * @returns Formatted currency string\n *\n * @example\n * ```typescript\n * formatCurrency(12345, 'EUR') // → \"12 345 €\"\n * formatCurrency(12345, 'USD') // → \"$12,345\"\n * ```\n */\ndeclare function formatCurrency(value: number | null | undefined, currencyCode: string, options?: Intl.NumberFormatOptions): string;","formatDate":"/**\n * Format date to localized string with preset or custom options\n * Uses native Intl.DateTimeFormat for proper locale-aware formatting.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, FirestoreTimestamp, or null/undefined)\n * @param locale - Locale string (e.g., \"en\", \"fr\", \"de\"). Defaults to \"en\"\n * @param format - Preset name or custom options. Defaults to \"long\"\n * @returns Localized formatted date string, or empty string if date is invalid\n *\n * @example\n * formatDate('2025-05-05T00:00:00.000Z', 'en', 'full') // \"Monday, May 5, 2025\"\n * formatDate('2025-05-05T00:00:00.000Z', 'fr', 'long') // \"5 mai 2025\"\n * formatDate('2025-05-05T14:30:00.000Z', 'en', 'datetime') // \"May 5, 2025, 02:30 PM\"\n * formatDate(new Date(), 'de', { month: 'short', day: 'numeric' }) // \"5. Mai\"\n */\ndeclare function formatDate(date: DateValue | number | string | null | undefined, locale?: string, format?: DateFormatPreset | DateFormatOptions): string;","formatRelativeTime":"/**\n * Format a date as relative time (e.g., \"5 minutes ago\", \"in 2 hours\")\n * Uses native Intl.RelativeTimeFormat for locale-aware formatting.\n * Falls back to formatDate for dates older than threshold.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, or null/undefined)\n * @param locale - Locale string (e.g., \"en\", \"fr\", \"de\"). Defaults to \"en\"\n * @param options - Configuration options\n * @param options.style - \"long\" | \"short\" | \"narrow\". Defaults to \"long\"\n * @param options.numeric - \"always\" | \"auto\". Defaults to \"auto\" (allows \"yesterday\" instead of \"1 day ago\")\n * @param options.fallbackThreshold - Seconds after which to fall back to formatDate. Defaults to 1 week\n * @returns Localized relative time string or formatted date for old dates\n */\ndeclare function formatRelativeTime(date: DateValue | number | null | undefined, locale?: string, options?: {\n style?: 'long' | 'short' | 'narrow';\n numeric?: 'always' | 'auto';\n fallbackThreshold?: number;\n}","generateCodeChallenge":"/**\n * Generate a code challenge from a code verifier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param verifier The code verifier\n * @returns Promise resolving to Base64URL-encoded code challenge\n */\ndeclare function generateCodeChallenge(verifier: string): Promise<string>;","generateCodeVerifier":"/**\n * Generate a cryptographically random code verifier\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Base64URL-encoded code verifier\n */\ndeclare function generateCodeVerifier(): string;","generateCompatibilityReport":"/**\n * Generate compatibility report\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function generateCompatibilityReport(): CompatibilityReport;","generateEncryptionKey":"/**\n * Generate a secure, non-extractable encryption key.\n *\n * The key is marked `extractable: false` so the raw key material can never\n * be exported by JavaScript code, defeating the C-OLD-2 vulnerability.\n *\n * @returns Promise resolving to the generated key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function generateEncryptionKey(): Promise<CryptoKey>;","generateFirestoreRuleCondition":"/**\n * Generates a Firestore rule condition for read and update based on ownership config.\n * Use the returned string in firestore.rules like:\n *\n * allow read, update: if <generated>;\n *\n * The condition is: (publicCondition AND ...) OR request.auth.uid == resource.data.<ownerField1> OR ...\n *\n * @param ownership - Entity ownership config (ownerFields + optional publicCondition array)\n * @returns Rule condition expression string\n */\ndeclare function generateFirestoreRuleCondition(ownership: EntityOwnershipConfig): string;","generatePKCEPair":"/**\n * Generate a PKCE pair (code verifier and challenge)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Promise resolving to PKCE pair\n */\ndeclare function generatePKCEPair(): Promise<{\n codeVerifier: string;\n codeChallenge: string;\n}","generateUUID":"/**\n * Generate a cryptographically random UUID v4.\n *\n * Uses `crypto.getRandomValues()` (universal) instead of `crypto.randomUUID()`\n * (Safari 15.4+ only) for maximum browser compatibility.\n *\n * @returns UUID v4 string (e.g. \"550e8400-e29b-41d4-a716-446655440000\")\n *\n * @version 0.1.0\n * @since 0.1.0\n */\ndeclare function generateUUID(): string;","getActiveCookies":"/**\n * Get all cookies being used based on detected features\n */\ndeclare function getActiveCookies(): CookieInfo[];","getAppShortName":"/**\n * Get the application short name with proper fallback\n * Priority: app.shortName prop → app.name prop → default fallback\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param appConfig - Optional app metadata object\n * @param fallback - Default fallback value (default: 'App')\n * @returns The resolved app short name\n */\ndeclare function getAppShortName(appConfig?: AppMetadata, fallback?: string): string;","getAssetsConfig":"/**\n * Get assets configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAssetsConfig(): unknown;","getAuthDomain":"/**\n * Get Firebase Auth domain (host only)\n *\n * Firebase Console always returns `projectId.firebaseapp.com` in SDK config,\n * but for custom domains in production, we need `yourdomain.com`.\n *\n * Logic:\n * - If APP_URL is set and not localhost → use APP_URL hostname (production custom domain)\n * - Otherwise → use FIREBASE_AUTH_DOMAIN (localhost/dev uses Firebase default)\n *\n * - Normalizes by stripping protocol and trailing slashes\n * - Lowercases the host\n * - No memoization; computed on each call similar to isDev()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthDomain(): string;","getAuthMethod":"/**\n * Get auth method (single source of truth)\n * - If method is provided: use it\n * - If method is null/undefined: isDev() ? 'popup' : 'redirect'\n * @param method - Auth method ('popup' or 'redirect')\n * @returns 'popup' or 'redirect'\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthMethod(method?: AuthMethod | null): AuthMethod;","getAuthPartnerConfig":"/**\n * Get auth partner configuration (only if valid)\n * Lazily validates the partner before returning configuration\n *\n * @param partnerId Partner identifier\n * @returns Auth partner configuration or undefined if not found/invalid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthPartnerConfig(partnerId: AuthPartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getAuthPartnerIdByFirebaseId":"/**\n * Get AuthPartnerId from Firebase provider ID\n * Uses AUTH_PARTNERS schema as single source of truth (DRY)\n *\n * @param firebaseProviderId - Firebase provider ID (e.g., 'google.com', 'github.com')\n * @returns AuthPartnerId or null if not found\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAuthPartnerIdByFirebaseId(firebaseProviderId: string): AuthPartnerId | null;","getAvailableFeatures":"/**\n * Get all available features\n * @returns Array of available feature names\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableFeatures(): FrameworkFeature[];","getBrowserRecommendations":"/**\n * Get browser recommendations\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getBrowserRecommendations(): string[];","getConditionDependencies":"/**\n * Extract all field names referenced by a condition expression.\n * Useful for building dependency graphs and optimizing re-evaluation.\n *\n * @param condition - The condition expression or builder to analyze\n * @returns Set of field names (may include dot-notated paths)\n */\ndeclare function getConditionDependencies(condition: ConditionExpression | ConditionBuilder): Set<string>;","getConfigSection":"/**\n * Get specific config section\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getConfigSection<T>(section: keyof DndevFrameworkConfig): T | null;","getConfigSource":"/**\n * Get config source information\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getConfigSource(): {\n platform: string;\n source: string;\n available: boolean;\n}","getCookie":"/**\n * Get a cookie value by name\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCookie(name: string): string | null;","getCookieExamples":"/**\n * Get cookie examples for banner display (short version)\n */\ndeclare function getCookieExamples(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): string;","getCookiesByCategory":"/**\n * Get cookies by category\n */\ndeclare function getCookiesByCategory(category: 'necessary' | 'functional' | 'analytics' | 'marketing'): CookieInfo[];","getCurrencyLocale":"/**\n * Returns the locale for a currency code (for Intl formatting).\n * Unknown codes → 'en-US'.\n *\n * @param currencyCode - ISO 4217 currency code (e.g. 'EUR', 'USD')\n * @returns Locale string\n */\ndeclare function getCurrencyLocale(currencyCode: string): string;","getCurrencySymbol":"/**\n * Returns the symbol for a currency code (e.g. EUR → '€').\n * Unknown codes → code as-is (no validation).\n *\n * @param currencyCode - ISO 4217 currency code or any string\n * @returns Symbol string or the code itself\n */\ndeclare function getCurrencySymbol(currencyCode: string): string;","getCurrentOrigin":"/**\n * Get current origin for redirect URL construction\n *\n * SSR-safe way to get the current origin for building redirect URLs.\n *\n * @returns Current origin or null if not available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCurrentOrigin(): string | null;","getCurrentTimestamp":"/**\n * Get current timestamp as ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Current timestamp in ISO string format\n */\ndeclare function getCurrentTimestamp(): string;","getDndevConfig":"/**\n * Get DnDev config data synchronously\n *\n * Data is populated at build time and immediately available at runtime.\n * No async needed - config is always there when the app starts.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getDndevConfig(): DndevFrameworkConfig | null;","getEnabledAuthPartners":"/**\n * Get enabled auth partners from environment variables\n * Computed once on first call, then cached permanently (like isDev/isClient)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Array of enabled auth partners\n */\ndeclare function getEnabledAuthPartners(): AuthPartnerId[];","getEnabledOAuthPartners":"/**\n * Get enabled OAuth partners from environment variables\n * @returns Array of enabled OAuth partners\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getEnabledOAuthPartners(): OAuthPartnerId[];","getEncryptionKey":"/**\n * Get or create the encryption key.\n *\n * Keys are stored in IndexedDB as native CryptoKey objects (not exported raw\n * bytes), so the key material is never written to localStorage or any\n * JavaScript-accessible string.\n *\n * @returns Promise resolving to the encryption key\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getEncryptionKey(): Promise<CryptoKey>;","getFeatureSummary":"/**\n * Get feature availability summary\n * @returns Object with feature availability status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getFeatureSummary(): Record<FrameworkFeature, boolean>;","getGlobalSingleton":"/**\n * Get or create a singleton backed by `globalThis.__DNDEV_SINGLETONS__`.\n *\n * Use this for singletons that must be shared across packages or survive\n * bundler chunk splits (Vite pre-bundling, esbuild code-splitting, HMR).\n *\n * Module-level `let` singletons break when a bundler evaluates the same\n * module in two separate chunks - each gets its own `let`. `globalThis`\n * is process-wide and survives all of that.\n *\n * **When to use:**\n * - Registries shared between consumer code and framework internals\n * (e.g. FieldRegistry, providers, auth instance)\n * - Any singleton where `registerX()` happens in one package and\n * `getX()` happens in another\n *\n * **When NOT to use:**\n * - Server-only singletons (functions/, tooling/, mcp-server/) - no chunk splits\n * - File-local caches that are only read in the same file\n *\n * @param key - Unique key for this singleton (e.g. 'field-registry')\n * @param factory - Factory function called once to create the instance\n * @returns The singleton instance (existing or newly created)\n *\n * @example\n * ```typescript\n * // In FieldRegistry.ts\n * import { getGlobalSingleton } from '@donotdev/core';\n *\n * export function getFieldRegistry(): FieldRegistry {\n * return getGlobalSingleton('field-registry', () => new FieldRegistry());\n * }\n *\n * // In providers.ts\n * let _providers = getGlobalSingleton('providers', () => ({ current: null }));\n * ```\n */\ndeclare function getGlobalSingleton<T>(key: string, factory: () => T): T;","getI18nConfig":"/**\n * Get i18n configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getI18nConfig(): I18nPluginConfig | null;","getListCardFieldNames":"/**\n * SSOT for card field resolution. Returns a flat, deduplicated field name list.\n *\n * Fallback chain: `listCardFields` → `listFields` → all entity field keys.\n *\n * - `string[]` → returned as-is\n * - `ListCardLayout` → all slot arrays merged (deduplicated)\n * - `undefined` → falls back to `listFields`, then `Object.keys(fields)`\n */\ndeclare function getListCardFieldNames(entity: {\n listCardFields?: string[] | ListCardLayout;\n listFields?: string[];\n fields?: Record<string, unknown>;\n}","getLocalStorageItem":"/**\n * Safe localStorage.getItem with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param key - localStorage key\n * @param defaultValue - Default value if key doesn't exist or error occurs\n * @returns Stored value or default value\n */\ndeclare function getLocalStorageItem<T = string>(key: string, defaultValue: T): T;","getNextEnvVar":"/**\n * Get Next.js environment variable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getNextEnvVar(name: string): string | undefined;","getOAuthClientId":"/**\n * Get OAuth client ID from environment variables\n *\n * @param partnerId Partner identifier\n * @returns Client ID or undefined if not configured\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthClientId(partnerId: OAuthPartnerId): string | undefined;","getOAuthPartnerConfig":"/**\n * Get OAuth partner configuration (only if valid)\n * Lazily validates the partner before returning configuration\n *\n * @param partnerId Partner identifier\n * @returns OAuth partner configuration or undefined if not found/invalid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthPartnerConfig(partnerId: OAuthPartnerId): {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n}","getOAuthRedirectUri":"/**\n * Get OAuth redirect URI from environment variables or use default\n * Simple, secure approach with single source of truth\n *\n * @param partnerId Partner identifier\n * @returns Redirect URI to use for OAuth flow\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getOAuthRedirectUri(partnerId: OAuthPartnerId): string;","getOAuthRedirectUrl":"/**\n * Get the OAuth redirect URL used by the framework.\n *\n * Single source of truth for OAuth callback endpoint construction.\n * Reads from VITE_APP_URL/NEXT_PUBLIC_APP_URL env var (set at build time from appConfig.app.url).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param baseUrl - Optional base URL. If not provided, reads from env var (set from appConfig.app.url at build time).\n * @returns Absolute OAuth redirect URL (e.g., 'https://example.com/oauth/callback')\n */\ndeclare function getOAuthRedirectUrl(baseUrl?: string): string;","getPartnerCacheStatus":"/**\n * Get cache status for debugging\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getPartnerCacheStatus(): {\n authPartnersCached: boolean;\n oauthPartnersCached: boolean;\n authPartners: (\"password\" | \"apple\" | \"discord\" | \"emailLink\" | \"facebook\" | \"github\" | \"google\" | \"linkedin\" | \"microsoft\" | \"reddit\" | \"spotify\" | \"twitch\" | \"twitter\" | \"yahoo\")[] | null;\n oauthPartners: (\"discord\" | \"github\" | \"google\" | \"linkedin\" | \"reddit\" | \"spotify\" | \"twitch\" | \"twitter\" | \"slack\" | \"notion\" | \"medium\" | \"mastodon\" | \"youtube\" | \"supabase\" | \"vercel\")[] | null;\n}","getPartnerConfig":"/**\n * Get partner configuration based on ID, regardless of type\n *\n * @param partnerId Partner identifier (auth or OAuth)\n * @returns Partner configuration or undefined if not found\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getPartnerConfig(partnerId: PartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getPlatformEnvVar":"/**\n * Platform-agnostic environment variable access\n * Handles both Vite (VITE_) and Next.js (NEXT_PUBLIC_) naming conventions\n *\n * Forgiving API: Accepts both prefixed and unprefixed names\n * - 'VITE_APP_VERSION' or 'APP_VERSION' both work for Vite\n * - 'NEXT_PUBLIC_APP_URL' or 'APP_URL' both work for Next.js\n *\n * @version 0.1.0\n * @author AMBROISE PARK Consulting\n * @param baseName - The environment variable name (with or without prefix, e.g., 'COMPANY_NAME' or 'VITE_COMPANY_NAME')\n * @returns The value or undefined if not found\n */\ndeclare function getPlatformEnvVar(baseName: string, platform?: Platform): string | undefined;","getProvider":"/**\n * Get a configured provider by key.\n *\n * @param key - The provider key ('crud', 'auth', 'storage', 'serverAuth', 'callable')\n * @returns The provider instance\n * @throws If provider not configured\n */\ndeclare function getProvider<K extends keyof DndevProviders>(key: K): NonNullable<DndevProviders[K]>;","getProviderColor":"/**\n * Returns the primary brand color associated with the specified authentication provider.\n * Uses schema discovery to support all AUTH_PARTNERS automatically.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * If the provider color is not found, it returns a default color.\n *\n * @param {AuthPartnerId} provider - The identifier for the authentication provider (e.g., 'google', 'facebook').\n * @returns {string} The brand color as a hexadecimal string (e.g., '#1877F2').\n */\ndeclare function getProviderColor(provider: AuthPartnerId): string;","getRoleFromClaims":"/**\n * Extract canonical role from auth claims\n *\n * Handles:\n * - 'role' claim (primary)\n * - Boolean flags (isAdmin, isSuper) (legacy/convenience)\n * - Fallbacks to USER_ROLES.USER\n *\n * @param claims - Auth claims object\n * @returns Canonical role string\n */\ndeclare function getRoleFromClaims(claims: Record<string, any>): string;","getRoutesConfig":"/**\n * Get routes configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRoutesConfig(): unknown;","getStorageManager":"declare const getStorageManager: () => StorageManager;","getThemesConfig":"/**\n * Get themes configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getThemesConfig(): ThemesPluginConfig | null;","getTokenManager":"declare const getTokenManager: () => TokenManager;","getValidAuthPartnerConfig":"/**\n * Dynamic config getter with validation (no static structure recreation)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidAuthPartnerConfig(partnerId: AuthPartnerId): {\n readonly name: \"Apple\";\n readonly color: \"#000000\";\n readonly icon: \"apple\";\n readonly type: \"both\";\n readonly scopes: readonly [\"email\", \"name\"];\n readonly firebaseProviderId: \"apple.com\";\n readonly customParameters: {\n readonly prompt: \"login\";\n };\n readonly button: {\n readonly backgroundColor: \"#000000\";\n readonly textColor: \"#ffffff\";\n readonly borderColor: \"#000000\";\n readonly hoverBackgroundColor: \"#1a1a1a\";\n readonly focusOutlineColor: \"#333333\";\n readonly fontWeight: \"500\";\n readonly textKey: \"buttons.apple\";\n };\n}","getValidAuthPartnerIds":"/**\n * Get only valid auth partner IDs (pure discovery, no static structure)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidAuthPartnerIds(): AuthPartnerId[];","getValidOAuthPartnerConfig":"/**\n * Dynamic config getter with validation (no static structure recreation)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidOAuthPartnerConfig(partnerId: OAuthPartnerId): {\n readonly name: \"Google\";\n readonly color: \"#4285F4\";\n readonly icon: \"google\";\n readonly type: \"both\";\n readonly scopes: {\n readonly authentication: readonly [\"openid\", \"profile\", \"email\"];\n readonly 'api-access': readonly [\"https://www.googleapis.com/auth/drive.readonly\", \"https://www.googleapis.com/auth/userinfo.profile\", \"https://www.googleapis.com/auth/calendar.readonly\", \"https://www.googleapis.com/auth/gmail.readonly\"];\n };\n readonly endpoints: {\n readonly authUrl: \"https://accounts.google.com/o/oauth2/v2/auth\";\n readonly tokenUrl: \"https://oauth2.googleapis.com/token\";\n readonly profileUrl: \"https://www.googleapis.com/oauth2/v3/userinfo\";\n readonly revokeUrl: \"https://oauth2.googleapis.com/revoke\";\n };\n readonly capabilities: {\n readonly pkce: true;\n readonly codeChallengeMethod: \"S256\";\n };\n readonly button: {\n readonly backgroundColor: \"#ffffff\";\n readonly textColor: \"#000000\";\n readonly borderColor: \"#d1d5db\";\n readonly hoverBackgroundColor: \"#f9fafb\";\n readonly focusOutlineColor: \"#3b82f6\";\n readonly fontWeight: \"500\";\n };\n}","getValidOAuthPartnerIds":"/**\n * Get only valid OAuth partner IDs (pure discovery, no static structure)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getValidOAuthPartnerIds(): OAuthPartnerId[];","getVisibleFields":"/**\n * Extracts the names of all fields from a Valibot object schema that should be visible\n * based on the user's role and optional ownership context (for visibility: 'owner').\n *\n * @param schema - The Valibot schema, expected to be an object schema (v.object)\n * @param userRole - The current user's role (guest, user, admin, super)\n * @param options - Optional: documentData, uid, ownership for owner-level visibility\n * @returns An array of visible field names\n */\ndeclare function getVisibleFields(schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>, userRole: UserRole, options?: GetVisibleFieldsOptions): string[];","getVisibleItems":"/**\n * Get visible items from a container\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getVisibleItems(container: Element, threshold?: number): Set<number>;","getViteEnvVar":"/**\n * Get Vite environment variable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getViteEnvVar(name: string): string | undefined;","getWeekFromISOString":"/**\n * Calculate week number from ISO date string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param isoString - ISO date string\n * @returns Week number and year as string (e.g., \"Week 15, 2024\")\n */\ndeclare function getWeekFromISOString(isoString: string): string;","globalEmitter":"/**\n * Global event emitter instance for framework-wide event communication\n *\n * This singleton instance is used throughout the framework for:\n * - Cross-component communication\n * - Feature initialization coordination\n * - State synchronization\n * - Error propagation\n *\n * **Usage:**\n * ```typescript\n * import { globalEmitter } from '@donotdev/utils';\n *\n * // Emit framework events\n * globalEmitter.emit('FEATURE_INITIALIZED', { feature: 'auth' });\n *\n * // Listen for framework events\n * globalEmitter.on('FEATURE_INITIALIZED', (data) => {\n * console.log('Feature initialized:', data);\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const globalEmitter: EventEmitter;","handleError":"/**\n * Universal error handler for DoNotDev applications\n *\n * Handles errors from any source, converting them to standardized DoNotDevError\n * objects, logging appropriately, and optionally adding to UI notification system.\n *\n * @param error - The original error from any source\n * @param optionsOrMessage - Optional configuration or user-friendly message\n * @returns Standardized DoNotDevError\n *\n * @example\n * try {\n * await fetchData();\n * } catch (error) {\n * throw handleError(error, 'Failed to fetch data');\n * }\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function handleError(error: unknown, optionsOrMessage?: HandleErrorOptions | string): DoNotDevError;","hasOptionalCookies":"/**\n * Check if app uses any optional cookies (functional/analytics/marketing)\n */\ndeclare function hasOptionalCookies(): boolean;","hasProvider":"/**\n * Check if a provider is configured.\n *\n * @param key - The provider key to check\n * @returns true if the provider is configured\n */\ndeclare function hasProvider(key: keyof DndevProviders): boolean;","hasRestrictedVisibility":"/**\n * Returns true if any field in the schema declares a visibility level more\n * restrictive than 'guest' (i.e. 'user', 'owner', 'admin', 'super', 'technical', 'hidden').\n * Used by CrudService to gate direct adapter access for non-public entities.\n *\n * Handles wrapped schemas (pipe, nullable, optional, union) by traversing the\n * schema tree to find the underlying object entries. Returns false for schemas\n * that cannot be introspected (lazy, custom).\n *\n * @param schema - A Valibot schema or dndevSchema to inspect\n * @returns true if any field has restricted visibility\n *\n * @example\n * // Public entity — all fields guest visibility\n * hasRestrictedVisibility(PublicPostSchema) // false\n *\n * @example\n * // Private entity — email field is 'user' visibility\n * hasRestrictedVisibility(UserProfileSchema) // true\n *\n * @version 0.1.0\n * @since 0.0.1\n */\ndeclare function hasRestrictedVisibility(schema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>> | dndevSchema<any>): boolean;","hasRoleAccess":"/**\n\n * Check if a user role has access to a required role based on hierarchy.\n\n *\n\n * Uses a 4-level hierarchy where higher roles inherit access to lower roles:\n\n * - Super (level 3) can access super, admin, user, and guest routes\n\n * - Admin (level 2) can access admin, user, and guest routes\n\n * - User (level 1) can access user and guest routes\n\n * - Guest (level 0) can access guest routes only\n\n *\n\n * Unknown roles default to level -1 (denied) for security.\n\n * Unknown required roles default to Infinity (always denied).\n\n *\n\n * @param userRole - The user's current role (e.g., 'super', 'admin', 'user', 'guest')\n\n * @param requiredRole - The role required to access the resource\n\n * @returns True if user has sufficient role level, false otherwise\n\n *\n\n * @example\n\n * ```typescript\n\n * // Admin accessing user route\n\n * hasRoleAccess('admin', 'user') // true\n\n *\n\n * // User accessing admin route\n\n * hasRoleAccess('user', 'admin') // false\n\n *\n\n * // Super accessing admin route\n\n * hasRoleAccess('super', 'admin') // true\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n */\ndeclare function hasRoleAccess(userRole: string | undefined, requiredRole: string): boolean;","hasTierAccess":"/**\n\n * Check if a user tier has access to a required tier based on hierarchy.\n\n *\n\n * Uses tier levels from the provided config (or COMMON_TIER_CONFIGS as fallback).\n\n * Higher tier levels inherit access to lower tier levels.\n\n *\n\n * Unknown tiers default to level -1 (denied) for security.\n\n * Unknown required tiers default to Infinity (always denied).\n\n *\n\n * @param userTier - The user's current tier (e.g., 'pro', 'free', 'ai')\n\n * @param requiredTier - The tier required to access the resource\n\n * @param tierConfig - Optional custom tier configuration. If not provided, uses COMMON_TIER_CONFIGS\n\n * @returns True if user has sufficient tier level, false otherwise\n\n *\n\n * @example\n\n * ```typescript\n\n * // Pro accessing free route\n\n * hasTierAccess('pro', 'free') // true\n\n *\n\n * // Free accessing pro route\n\n * hasTierAccess('free', 'pro') // false\n\n *\n\n * // With custom config\n\n * const customConfig = {\n\n * basic: { features: [], level: 0 },\n\n * premium: { features: [], level: 1 }\n\n * };\n\n * hasTierAccess('premium', 'basic', customConfig) // true\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n */\ndeclare function hasTierAccess(userTier: string | undefined, requiredTier: string, tierConfig?: SubscriptionConfig['tiers']): boolean;","initSentry":"/**\n * Initialize Sentry if configured\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Promise<boolean> - true if Sentry was initialized, false otherwise\n */\ndeclare function initSentry(): Promise<boolean>;","initializeConfig":"/**\n * Initialize config if not available (fallback only)\n * Config should be populated at build time - this is just a safety net\n */\ndeclare function initializeConfig(): DndevFrameworkConfig | null;","initializePlatformDetection":"/**\n * Initialize platform detection and set unified config\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns Framework configuration object with platform information\n */\ndeclare function initializePlatformDetection(): DndevFrameworkConfig;","isAuthPartnerEnabled":"/**\n * Check if a partner is enabled for authentication\n *\n * @param partnerId Partner identifier\n * @returns True if the partner is enabled for authentication\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isAuthPartnerEnabled(partnerId: AuthPartnerId): boolean;","isClient":"/**\n * Check if running in client context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in browser/client environment\n */\ndeclare function isClient(): boolean;","isCompactDateString":"/**\n * Check if a string is in compact date format (YYYYMMDD:HHMM)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param value - String to check\n * @returns True if string matches YYYYMMDD:HHMM format\n */\ndeclare function isCompactDateString(value: string): boolean;","isConfigAvailable":"/**\n * Check if config is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isConfigAvailable(): boolean;","isDev":"/**\n * Platform-agnostic development mode check\n * Uses framework's environment access to work in Vite, Next.js, SSR/CSR.\n *\n * Precedence:\n * 1) Vite's import.meta.env.DEV (true when command === 'serve', regardless of mode)\n * 2) Vite's import.meta.env.MODE !== 'production' (handles custom modes like 'test')\n * 3) APP_ENV (framework-level)\n * 4) NODE_ENV (platform-level)\n * Defaults to 'development' when unknown.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isDev(): boolean;","isElementInViewport":"/**\n * Check if element is in viewport\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isElementInViewport(element: Element, threshold?: number): boolean;","isEmailVerificationRequired":"/**\n * Check if email verification is required for the current user\n *\n * @param user - The current user object\n * @returns boolean - true if email verification is required\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isEmailVerificationRequired(user: any): boolean;","isExpo":"/**\n * Check if running on Expo platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Expo\n */\ndeclare function isExpo(): boolean;","isFeatureAvailable":"/**\n * Check if a specific feature is available and configured\n * @param feature The feature to check\n * @returns True if the feature is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isFeatureAvailable(feature: FrameworkFeature): boolean;","isFieldVisible":"/**\n * Determines if a field should be visible based on its visibility setting\n * and the user's role.\n *\n * Uses hasRoleAccess for hierarchical check:\n * - guest < user < admin < super\n *\n * Special cases:\n * - `technical`: Visible to admin and super only (read-only in forms)\n * - `hidden`: Never visible\n * - undefined: Treated as `guest` (visible to all)\n *\n * @param visibility - The field's visibility setting\n * @param userRole - The current user's role\n * @returns True if the field should be visible\n */\ndeclare function isFieldVisible(visibility: Visibility | undefined, userRole: UserRole): boolean;","isIntersectionObserverSupported":"/**\n * Check if IntersectionObserver is supported\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isIntersectionObserverSupported(): boolean;","isLocalStorageAvailable":"/**\n * Check if localStorage is available\n * @returns Whether localStorage is available\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isLocalStorageAvailable(): boolean;","isNextJs":"/**\n * Check if running on Next.js platform\n * Checks config first (source of truth), then falls back to detection\n * Caches result after first successful detection\n *\n * Enhanced detection for SSR/client reliability:\n * - Checks Next.js environment variables (NEXT_RUNTIME)\n * - Checks Next.js globals (__NEXT_DATA__)\n * - Falls back to config and full platform detection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Next.js\n */\ndeclare function isNextJs(): boolean;","isOAuthPartnerEnabled":"/**\n * Check if a partner is enabled for OAuth API access\n *\n * @param partnerId Partner identifier\n * @returns True if the partner is enabled for OAuth API access\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isOAuthPartnerEnabled(partnerId: OAuthPartnerId): boolean;","isPKCESupported":"/**\n * Check if PKCE is supported by the current environment\n * @returns True if PKCE is supported\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isPKCESupported(): boolean;","isPlatform":"/**\n * Check if current platform matches target\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isPlatform(targetPlatform: Platform): boolean;","isReactNative":"/**\n * Check if running on React Native platform\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on React Native\n */\ndeclare function isReactNative(): boolean;","isServer":"/**\n * Check if running in server context\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in Node.js/server environment\n */\ndeclare function isServer(): boolean;","isTest":"/**\n * Check if running in test environment\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running in test environment (Jest, etc.)\n */\ndeclare function isTest(): boolean;","isVite":"/**\n * Check if running on Vite platform\n * Checks config first (source of truth), then falls back to detection\n * Caches result after first successful detection\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns True if running on Vite\n */\ndeclare function isVite(): boolean;","isoToCompactString":"/**\n * Convert ISO string to compact date format (YYYYMMDD:HHMM)\n * Format: 2025-12-25T00:00:00.000Z → 20251225:0000\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param isoString - ISO date string\n * @returns Compact date string in YYYYMMDD:HHMM format\n * @throws Error if ISO string is invalid\n */\ndeclare function isoToCompactString(isoString: string): string;","lazyImport":"/**\n * Lazy import with caching\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param importFn - Dynamic import function\n * @param cacheKey - Cache key for this import\n * @returns Cached or fresh import result\n */\ndeclare function lazyImport<T>(importFn: () => Promise<T>, cacheKey: string): Promise<T>;","mapToDoNotDevError":"/**\n * Maps an error from any source to a standardized DoNotDevError\n *\n * This is the central error mapping function that routes errors to the appropriate\n * handler based on the detected source.\n *\n * @param error - The original error\n * @param source - The detected error source\n * @param userMessage - Optional user-friendly message\n * @returns A standardized DoNotDevError\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function mapToDoNotDevError(error: unknown, source: ErrorSource, userMessage?: string): DoNotDevError;","maybeTranslate":"/**\n * Smart translation helper - auto-detects translation keys vs raw strings\n *\n * **How it works:**\n * - If string has no dots/colons → return as-is (plain string)\n * - If string has namespace prefix (e.g. \"purchase:products.x\") → try to translate\n * - If string has dots but no namespace → try to translate (i18next fallback returns original if missing)\n *\n * **Namespace handling:**\n * - \"purchase:products.earlyBird.name\" → translates from purchase namespace\n * - \"products.earlyBird.name\" → translates from current namespace\n * - \"Early Bird Lifetime\" → returns as-is\n *\n * **Use cases:**\n * 1. Simple apps: Pass plain strings, they render as-is\n * 2. i18n apps: Pass translation keys with namespace prefix\n * 3. Edge cases: \"Dr. Smith\" with dot → tries t(), fallback returns original ✅\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Simple app\n * maybeTranslate(t, \"Early Bird Lifetime\") // → \"Early Bird Lifetime\"\n *\n * // i18n app with namespace\n * maybeTranslate(t, \"purchase:products.earlyBird.name\") // → \"Accès Anticipé à Vie\" (if FR)\n *\n * // i18n app without namespace\n * maybeTranslate(t, \"products.earlyBird.name\") // → \"Accès Anticipé à Vie\" (if FR)\n *\n * // Missing translation\n * maybeTranslate(t, \"products.missing.key\") // → \"products.missing.key\" (debug!)\n * ```\n */\ndeclare function maybeTranslate(t: any, value?: string): string;","normalizeToISOString":"/**\n * Normalize any date value to ISO string\n * Handles Date objects, ISO strings, compact format (YYYYMMDD:HHMM), timestamps (numbers), and Firestore Timestamps\n * This is the single source of truth for date normalization across the entire framework\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value in any format (Date, string, number, FirestoreTimestamp)\n * @returns ISO string representation\n * @throws Error if date is invalid\n */\ndeclare function normalizeToISOString(date: DateValue | number | null | undefined): string;","observeElement":"/**\n * Observe an element with intersection observer\n *\n * @param element - Element to observe\n * @param callback - Callback when intersection changes\n * @param options - Intersection observer options\n * @returns Cleanup function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function observeElement(element: Element, callback: IntersectionObserverCallback, options?: IntersectionObserverOptions): CleanupFunction;","parseAcceptLanguage":"/**\n * Language codes of an `Accept-Language` header, most preferred first\n * (`fr-FR,fr;q=0.9,en;q=0.8` → `['fr-FR', 'fr', 'en']`).\n */\ndeclare function parseAcceptLanguage(header: string | null | undefined): string[];","parseDate":"/**\n * Leniently parse any date value to ISO string.\n * Accepts Date objects, ISO strings, timestamps, Firestore Timestamps, and common date formats.\n * Returns undefined for invalid/unparseable dates (never throws).\n *\n * Use this for form inputs, API responses, or any external data where format is uncertain.\n * For strict validation, use normalizeToISOString() which throws on invalid input.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param value - Any value that might be a date\n * @returns ISO string if parseable, undefined otherwise\n *\n * @example\n * parseDate(new Date()) // \"2025-12-28T10:30:00.000Z\"\n * parseDate('2025-12-28') // \"2025-12-28T00:00:00.000Z\"\n * parseDate('Dec 28, 2025') // \"2025-12-28T00:00:00.000Z\"\n * parseDate(1735384200000) // \"2025-12-28T10:30:00.000Z\"\n * parseDate({ toDate: () => new Date() }) // \"2025-12-28T10:30:00.000Z\" (Firestore)\n * parseDate('not a date') // undefined\n * parseDate(null) // undefined\n */\ndeclare function parseDate(value: unknown): string | undefined;","parseDateToNoonUTC":"/**\n * Convert date-only string to ISO with time set to noon UTC.\n * Useful for date inputs where you want to avoid timezone edge cases.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param dateString - Date string (e.g., \"2025-12-28\")\n * @returns ISO string with time set to 12:00:00.000Z, or undefined if invalid\n *\n * @example\n * parseDateToNoonUTC('2025-12-28') // \"2025-12-28T12:00:00.000Z\"\n */\ndeclare function parseDateToNoonUTC(dateString: string): string | undefined;","readCookieValue":"/**\n * Value of one cookie in a `Cookie` header string (`a=1; b=2`).\n *\n * @returns The decoded value, or `null` when the cookie is absent\n */\ndeclare function readCookieValue(cookieHeader: string | null | undefined, name: string): string | null;","redirectToExternalUrl":"/**\n * Safely redirect to an external URL\n *\n * SSR-safe utility for redirecting to external URLs (Stripe, OAuth providers, etc.)\n * Handles validation, error cases, and provides proper error feedback.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param url - External URL to redirect to\n * @param options - Redirect options\n * @returns Promise that resolves when redirect is initiated\n *\n * @example\n * ```tsx\n * try {\n * await redirectToExternalUrl('https://checkout.stripe.com/pay/...');\n * } catch (error) {\n * // Handle redirect failure\n * handleError(error, {\n * userMessage: 'Failed to redirect to payment page',\n * showNotification: true,\n * });\n * }\n * ```\n */\ndeclare function redirectToExternalUrl(url: string, options?: {\n /** Whether to open in new tab instead of redirecting */\n openInNewTab?: boolean;\n /** Whether to validate URL format */\n validateUrl?: boolean;\n}","redirectToExternalUrlWithErrorHandling":"/**\n * Safely redirect to an external URL with automatic error handling\n *\n * Convenience function that automatically handles errors with toast notifications.\n * Use this when you want automatic error feedback without manual error handling.\n *\n * @param url - External URL to redirect to\n * @param options - Redirect options\n * @param errorMessage - Custom error message for toast\n *\n * @example\n * ```tsx\n * // Automatic error handling with toast\n * await redirectToExternalUrlWithErrorHandling(\n * 'https://checkout.stripe.com/pay/...',\n * {},\n * 'Failed to redirect to payment page'\n * );\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function redirectToExternalUrlWithErrorHandling(url: string, options?: Parameters<typeof redirectToExternalUrl>[1], errorMessage?: string): Promise<void>;","removeLocalStorageItem":"/**\n * Safe localStorage.removeItem with error handling\n * @param key - localStorage key\n * @returns Whether the operation was successful\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function removeLocalStorageItem(key: string): boolean;","resetProviders":"/**\n * Reset all providers. **Only for testing.**\n */\ndeclare function resetProviders(): void;","resolveAppConfig":"/**\n * Resolve complete app metadata with all fallbacks\n *\n * @version 0.1.0\n * @author AMBROISE PARK Consulting\n * @param appConfig - Optional app metadata object\n * @returns Complete resolved app metadata\n */\ndeclare function resolveAppConfig(appConfig?: AppMetadata): Required<Omit<AppMetadata, 'footer'>> & {\n footer?: AppMetadata['footer'];\n}","resolveLanguage":"/**\n * The language to render in.\n *\n * @param supported - Language codes the app ships\n * @param fallback - App fallback language (used when nothing else matches)\n * @param stored - The visitor's stored choice (language cookie), if any\n * @param preferred - The visitor's browser languages, most preferred first\n */\ndeclare function resolveLanguage({ supported, fallback, stored, preferred, }","safeLocalStorage":"/**\n * Safe localStorage access with SSR compatibility\n * Handles cases where window is undefined (SSR) or storage is unavailable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const safeLocalStorage: {\n getItem: (key: string) => string | null;\n setItem: (key: string, value: string) => void;\n removeItem: (key: string) => void;\n}","safeSessionStorage":"/**\n * Safe sessionStorage access with SSR compatibility\n * Handles cases where window is undefined (SSR) or storage is unavailable\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const safeSessionStorage: {\n getItem: (key: string) => string | null;\n setItem: (key: string, value: string) => void;\n removeItem: (key: string) => void;\n}","safeValidate":"/**\n * Safely validates data against a schema, returning null if validation fails instead of throwing.\n * Useful when you want to handle validation errors gracefully.\n *\n * @param schema - The Valibot schema to validate against\n * @param data - The data to validate\n * @returns The validated data, or null if validation fails\n *\n * @example\n * ```typescript\n * const validated = safeValidate(schema, rawData);\n * if (!validated) {\n * console.warn('Data validation failed, skipping...');\n * return null;\n * }\n * ```\n */\ndeclare function safeValidate<T>(schema: dndevSchema<T>, data: unknown): T | null;","sanitizeHref":"/**\n * Sanitize a URL for use in href attributes.\n * Blocks javascript:, data:, vbscript: and other dangerous schemes.\n * Allows safe schemes and relative URLs.\n *\n * @param href - The URL to sanitize\n * @returns The original URL if safe, empty string if dangerous\n */\ndeclare function sanitizeHref(href: string): string;","setCookie":"/**\n * Set a cookie with the specified options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function setCookie(name: string, value: string, options?: CookieOptions): void;","setLocalStorageItem":"/**\n * Safe localStorage.setItem with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param key - localStorage key\n * @param value - Value to store\n * @returns Success boolean or StorageError object\n */\ndeclare function setLocalStorageItem<T>(key: string, value: T): boolean | StorageError;","shouldShowEmailVerification":"/**\n * Check if email verification should be shown to users\n *\n * Email verification is only relevant when:\n * 1. Email authentication is enabled (user can sign up with email/password)\n * 2. Firebase email verification is enabled in the project settings\n *\n * @returns boolean - true if email verification should be shown\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function shouldShowEmailVerification(): boolean;","showNotification":"/**\n * Display a notification message (client-only)\n * This is a stub - actual implementation should be in client-side code\n * that imports toast directly from @donotdev/components\n *\n * @param message Message to display\n * @param severity Severity level\n * @param timeout Optional timeout in milliseconds\n * @returns ID of the notification\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function showNotification(message: string, severity?: 'error' | 'warning' | 'info' | 'success', timeout?: number): string;","supportsFeature":"/**\n * Check if browser supports a specific feature\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function supportsFeature(feature: keyof FeatureSupport): boolean;","throttle":"/**\n * Creates a throttled function that only invokes the provided function\n * at most once per every specified wait milliseconds.\n *\n * @param func The function to throttle\n * @param wait The number of milliseconds to throttle invocations to\n * @param trailing Whether to invoke on the trailing edge of the wait\n * @returns A throttled version of the function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function throttle<T extends (...args: any[]) => any>(func: T, wait?: number, trailing?: boolean): (...args: Parameters<T>) => void;","timestampToISOString":"/**\n * Convert timestamp (number) to ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param timestamp - Timestamp in milliseconds\n * @returns ISO string representation\n */\ndeclare function timestampToISOString(timestamp: number): string;","timingUtils":"/**\n * Index of all timing utility functions for easy reference\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const timingUtils: {\n debounce: typeof debounce;\n throttle: typeof throttle;\n cooldown: typeof cooldown;\n delay: typeof delay;\n}","toDateOnly":"/**\n * Extract date-only part from any date value (YYYY-MM-DD format).\n * Strips time component for date comparisons or display.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date value (ISO string, Date object, timestamp, or null/undefined)\n * @returns Date string in YYYY-MM-DD format, or empty string if invalid\n *\n * @example\n * toDateOnly('2025-12-28T14:30:00.000Z') // \"2025-12-28\"\n * toDateOnly(new Date()) // \"2025-12-28\"\n */\ndeclare function toDateOnly(date: DateValue | number | string | null | undefined): string;","toISOString":"/**\n * Convert Date object to ISO string\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param date - Date object to convert\n * @returns ISO string representation\n */\ndeclare function toISOString(date: Date): string;","translateArray":"/**\n * Translates an array using indexed keys and filters out missing translations\n *\n * **IMPORTANT:** This works with JSON arrays directly. i18next automatically treats\n * array indices as object keys, so `t('items.0')` works when JSON has `\"items\": [\"value1\", ...]`\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array (e.g., 'benefits', 'features.list')\n * @param maxIndex - Maximum index to check (exclusive, so 6 means indices 0-5)\n * @param options - Additional options for filtering\n * @returns Array of translated strings with missing translations filtered out\n *\n * @example\n * // JSON: { \"benefits\": [\"value1\", \"value2\", \"value3\"] }\n * const benefits = translateArray(t, 'benefits', 6);\n * // Result: [\"value1\", \"value2\", \"value3\"]\n * // Works because i18next treats arrays as objects with numeric keys\n *\n * @example\n * // JSON: { \"features\": { \"list\": [\"feature1\", \"feature2\"] } }\n * const features = translateArray(t, 'features.list', 5);\n * // Result: [\"feature1\", \"feature2\"]\n *\n * @example\n * // JSON: { \"items\": [\"a\", \"b\", \"c\", \"d\"] }\n * // Usage with List component:\n * <List items={translateArray(t, 'items', 10)} />\n * // i18next accesses items.0, items.1, etc. automatically\n *\n * @example\n * // With custom filtering\n * const items = translateArray(t, 'items', 10, {\n * minLength: 2, // Only include items with at least 2 characters\n * excludeEmpty: true // Exclude empty strings\n * });\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArray(t: TFunction, keyPrefix: string, maxIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateArrayRange":"/**\n * Translates an array with a specific range of indices\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array\n * @param startIndex - Starting index (inclusive)\n * @param endIndex - Ending index (exclusive)\n * @param options - Additional options for filtering\n * @returns Array of translated strings with missing translations filtered out\n *\n * @example\n * // Get items 2-5 (indices 2, 3, 4)\n * const items = translateArrayRange(t, 'items', 2, 5);\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArrayRange(t: TFunction, keyPrefix: string, startIndex: number, endIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateArrayWithIndices":"/**\n * Translates an array and returns both the items and their original indices\n * Useful when you need to maintain the original index information\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array\n * @param maxIndex - Maximum index to check (exclusive)\n * @param options - Additional options for filtering\n * @returns Array of objects with item and originalIndex properties\n *\n * @example\n * // Get benefits with their original indices\n * const benefitsWithIndices = translateArrayWithIndices(t, 'benefits', 6);\n * // Result: [\n * // { item: \"value1\", originalIndex: 0 },\n * // { item: \"value2\", originalIndex: 1 },\n * // { item: \"value3\", originalIndex: 2 }\n * // ]\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateArrayWithIndices(t: TFunction, keyPrefix: string, maxIndex: number, options?: {\n minLength?: number;\n excludeEmpty?: boolean;\n customFilter?: (item: string, index: number) => boolean;\n}","translateObjectArray":"/**\n * Translates an array of objects using indexed keys\n *\n * @param t - Translation function from useTranslation hook\n * @param keyPrefix - Base key prefix for the array (e.g., 'cases', 'items')\n * @param maxIndex - Maximum index to check (exclusive, so 4 means indices 0-3)\n * @param keys - Array of property keys to extract from each object (e.g., ['useCase', 'bestFit', 'dndev', 'reason'])\n * @returns Array of translated objects with missing translations filtered out\n *\n * @example\n * // JSON: { \"cases\": { \"0\": { \"useCase\": \"...\", \"bestFit\": \"...\" }, \"1\": {...} } }\n * const cases = translateObjectArray(t, 'cases', 4, ['useCase', 'bestFit', 'dndev', 'reason']);\n * // Result: [{ useCase: \"...\", bestFit: \"...\", dndev: \"...\", reason: \"...\" }, ...]\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function translateObjectArray<K extends string, T extends Record<K, string> = Record<K, string>>(t: TFunction, keyPrefix: string, maxIndex: number, keys: readonly K[]): T[];","updateMetadata":"/**\n * Creates update metadata for an existing document\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param userId - The ID of the user updating the document\n * @returns An object with update timestamp and user ID\n */\ndeclare function updateMetadata(userId: string): {\n updatedAt: string;\n updatedById: string;\n}","useSafeContext":"/**\n * Safe context hook with error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useSafeContext<T>(context: T | undefined, name: string): T;","useStorageManager":"/**\n * React hook for using StorageManager\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @returns StorageManager instance\n */\ndeclare function useStorageManager(): IStorageManager;","validateCodeChallenge":"/**\n * Validate a code challenge format\n * @param challenge The code challenge to validate\n * @returns True if the challenge is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCodeChallenge(challenge: string): boolean;","validateCodeVerifier":"/**\n * Validate a code verifier format\n * @param verifier The code verifier to validate\n * @returns True if the verifier is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateCodeVerifier(verifier: string): boolean;","validateWithSchema":"/**\n * Validates data against a schema, throwing a DoNotDevError if validation fails.\n * Use this in adapter methods to ensure data conforms to expected schemas.\n *\n * @param schema - The Valibot schema to validate against\n * @param data - The data to validate\n * @param context - Context for error messages (e.g., \"FirestoreAdapter.add\")\n * @returns The validated and parsed data\n * @throws DoNotDevError if validation fails\n *\n * @example\n * ```typescript\n * async add<T>(collection: string, data: T, schema?: dndevSchema<T>): Promise<{ id: string; data: Record<string, unknown> }> {\n * if (schema) {\n * data = validateWithSchema(schema, data, 'MyAdapter.add');\n * }\n * // ... proceed with validated data\n * }\n * ```\n */\ndeclare function validateWithSchema<T>(schema: dndevSchema<T>, data: unknown, context: string): T;","when":"/**\n * Start building a condition for a field.\n *\n * @param field - Field name to evaluate (supports dot notation for nested/cross-step: 'step.field')\n * @returns Builder with operator methods\n *\n * @example\n * ```typescript\n * // Simple\n * when('type').equals('car')\n *\n * // Combined\n * when('type').equals('corporate').or(when('size').greaterThan(10))\n *\n * // Cross-step (workflows)\n * when('basics.productType').equals('physical')\n * ```\n */\ndeclare function when(field: string): WhenFieldBuilder;","withErrorHandling":"/**\n * Creates a wrapped function that handles errors automatically\n *\n * @param fn - Function to wrap with error handling\n * @param options - Error handling options or user message\n * @returns Wrapped function with error handling\n *\n * @example\n * const safeFetchData = withErrorHandling(fetchData, 'Failed to fetch data');\n * await safeFetchData();\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function withErrorHandling<T extends (...args: any[]) => any>(fn: T, options?: HandleErrorOptions | string): (...args: Parameters<T>) => Promise<ReturnType<T>>;","withGracefulDegradation":"/**\n * Wraps initialization with graceful error handling\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param init - Async initialization function\n * @param fallback - Fallback function on error\n * @param featureName - Name of feature for logging\n * @returns Result or false on error\n */\ndeclare function withGracefulDegradation<T>(init: () => Promise<T>, fallback: () => void, featureName: string): Promise<T | false>;","withTimeout":"/**\n * Wrap a promise with a timeout and optional AbortSignal.\n *\n * - If timeout expires: rejects with a TimeoutError\n * - If signal aborts: rejects with an AbortError\n * - If promise resolves/rejects first: returns that result\n * - Cleans up all listeners on completion\n *\n * @param promise - The promise to wrap\n * @param timeoutMs - Timeout in milliseconds (0 or negative = no timeout)\n * @param signal - Optional AbortSignal\n * @returns The promise result\n */\ndeclare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, signal?: AbortSignal): Promise<T>;","wrapAuthError":"/**\n * Wraps an error from an auth adapter operation.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirebaseAuth.signInWithEmail\")\n * @param operation - The operation name (e.g., \"signInWithEmail\", \"linkWithPartner\")\n * @param details - Optional additional details (e.g., email, partnerId)\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.sdk.signInWithEmailAndPassword(email, password);\n * } catch (error) {\n * throw wrapAuthError(error, 'CustomAuth.signInWithEmail', 'signInWithEmail', { email });\n * }\n * ```\n */\ndeclare function wrapAuthError(error: unknown, context: string, operation: string, details?: Record<string, unknown>): DoNotDevError;","wrapCrudError":"/**\n * Wraps an error from a CRUD adapter operation.\n * Maps common database/API errors to DoNotDevError with appropriate codes.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirestoreAdapter.get\", \"SupabaseAdapter.add\")\n * @param operation - The operation name (e.g., \"get\", \"add\", \"query\")\n * @param collection - The collection/table name\n * @param id - Optional document ID\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.client.from('users').select().eq('id', id).single();\n * } catch (error) {\n * throw wrapCrudError(error, 'SupabaseCrudAdapter.get', 'get', 'users', id);\n * }\n * ```\n */\ndeclare function wrapCrudError(error: unknown, context: string, operation: string, collection: string, id?: string): DoNotDevError;","wrapStorageError":"/**\n * Wraps an error from a storage adapter operation.\n *\n * @param error - The original error from the adapter\n * @param context - Context about the operation (e.g., \"FirebaseStorageAdapter.upload\")\n * @param operation - The operation name (e.g., \"upload\", \"delete\", \"getUrl\")\n * @param path - The storage path or URL\n * @returns A DoNotDevError wrapping the original error\n *\n * @example\n * ```typescript\n * try {\n * return await this.bucket.upload(file, { destination: path });\n * } catch (error) {\n * throw wrapStorageError(error, 'S3StorageAdapter.upload', 'upload', path);\n * }\n * ```\n */\ndeclare function wrapStorageError(error: unknown, context: string, operation: string, path: string): DoNotDevError;","AuthHardeningConfig":"/** Configuration for brute-force lockout and session timeout enforcement. */\ninterface AuthHardeningConfig {\n /**\n * Max consecutive failed sign-in attempts before lockout.\n * @default 5\n */\n maxAttempts?: number;\n /**\n * Lockout duration in milliseconds.\n * @default 900_000 (15 minutes)\n */\n lockoutMs?: number;\n /**\n * Idle session timeout in milliseconds. After this period of inactivity,\n * the session is considered expired.\n * @default 28_800_000 (8 hours)\n */\n sessionTimeoutMs?: number;\n}","AuthUserLike":"/**\n * Shape of a user object that can refresh its own token.\n * Accepts Firebase User or any compatible auth user.\n */\ninterface AuthUserLike {\n getIdToken?: (forceRefresh?: boolean) => Promise<string>;\n getIdTokenResult?: (forceRefresh?: boolean) => Promise<{\n token: string;\n expirationTime: string;\n }>;\n}","BrowserEngine":"/**\n * Browser engine type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BrowserEngine = 'blink' | 'gecko' | 'webkit' | 'trident' | 'edgehtml' | 'unknown';","BrowserInfo":"/**\n * Browser information interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface BrowserInfo {\n type: BrowserType;\n version: string;\n engine: BrowserEngine;\n os: OS;\n isMobile: boolean;\n isTablet: boolean;\n isLaptop: boolean;\n userAgent: string;\n language: string;\n languages: string[];\n cookieEnabled: boolean;\n onLine: boolean;\n doNotTrack: boolean;\n hardwareConcurrency: number;\n maxTouchPoints: number;\n deviceMemory?: number;\n connection?: {\n effectiveType: string;\n downlink: number;\n rtt: number;\n };\n}","BrowserType":"/**\n * @fileoverview Browser Detection and Compatibility Utilities\n * @description Comprehensive browser detection, feature support, and compatibility checking\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype BrowserType = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera' | 'ie' | 'unknown';","Claims":"/**\n * Claims type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype Claims = Record<string, any>;","ClaimsCacheOptions":"/**\n * Claims cache options interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ClaimsCacheOptions {\n /** Enable offline trust (default: false) */\n offlineTrustEnabled?: boolean;\n /** Storage key prefix (default: 'dndev-claims') */\n storageKey?: string;\n /** User ID for scoped storage */\n userId?: string | null;\n}","ClaimsCacheResult":"/**\n * Claims cache result interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ClaimsCacheResult<T> {\n claims: T;\n source: 'network' | 'cache' | 'server-default';\n timestamp: number;\n}","CleanupFunction":"/**\n * Cleanup function returned by observeElement\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype CleanupFunction = () => void;","CompatibilityReport":"/**\n * Compatibility report interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface CompatibilityReport {\n browser: BrowserInfo;\n features: FeatureSupport;\n issues: string[];\n warnings: string[];\n recommendations: string[];\n score: number;\n}","ConsentLevel":"/**\n * Consent level type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ConsentLevel = (typeof CONSENT_LEVELS)[keyof typeof CONSENT_LEVELS];","CookieInfo":"/** Metadata for a single cookie used by the consent banner. */\ninterface CookieInfo {\n name: string;\n category: 'necessary' | 'functional' | 'analytics' | 'marketing';\n purpose: string;\n provider: string;\n}","CurrencyEntry":"/** Entry: 3-letter code → locale (for Intl) and display symbol */\ninterface CurrencyEntry {\n locale: string;\n symbol: string;\n}","DateFormatOptions":"/** Custom format options for fine-grained control */\ninterface DateFormatOptions {\n year?: 'numeric' | '2-digit';\n month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';\n day?: 'numeric' | '2-digit';\n weekday?: 'long' | 'short' | 'narrow';\n hour?: 'numeric' | '2-digit';\n minute?: 'numeric' | '2-digit';\n second?: 'numeric' | '2-digit';\n hour12?: boolean;\n timeZone?: string;\n timeZoneName?: 'long' | 'short';\n}","DateFormatPreset":"/** Date format presets for common use cases */\ntype DateFormatPreset = 'full' | 'long' | 'medium' | 'short' | 'date-only' | 'time-only' | 'datetime';","ErrorHandlerConfig":"/**\n * Core configuration for error handlers\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ErrorHandlerConfig {\n errorSource: ErrorSource;\n defaultErrorCode: ErrorCode;\n defaultErrorMessage: string;\n errorCodeMapping?: Record<string, ErrorCode>;\n friendlyMessageMapping?: Record<string, string>;\n extractErrorCode?: (error: unknown) => string | undefined;\n extractErrorMessage?: (error: unknown) => string | undefined;\n processMetadata?: (error: unknown) => Record<string, any>;\n}","ErrorHandlerFunction":"/**\n * Type for error handler functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype ErrorHandlerFunction = (error: unknown, userMessage?: string) => DoNotDevError;","EventListener":"/**\n * Event listener interface for TypeScript type checking\n *\n * Represents a single event listener with its handler function, configuration,\n * and optional context for binding.\n *\n * **Properties:**\n * - handler: Function to call when event is emitted\n * - once: Whether listener should be removed after first call\n * - context: Optional context to bind handler to\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EventListener<T = any> {\n /**\n * Handler function for the event\n */\n handler: InternalEventHandler;\n /**\n * Whether this is a one-time listener\n */\n once: boolean;\n /**\n * Optional context for the handler\n */\n context?: T;\n}","FeatureAvailability":"/**\n * Feature availability map\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FeatureAvailability = Record<FrameworkFeature, boolean>;","FeatureSupport":"/**\n * Feature support interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface FeatureSupport {\n es6: boolean;\n es2017: boolean;\n es2020: boolean;\n modules: boolean;\n dynamicImport: boolean;\n webWorkers: boolean;\n serviceWorkers: boolean;\n pushNotifications: boolean;\n geolocation: boolean;\n webRTC: boolean;\n webGL: boolean;\n webGL2: boolean;\n localStorage: boolean;\n sessionStorage: boolean;\n indexedDB: boolean;\n webAudio: boolean;\n webVideo: boolean;\n getUserMedia: boolean;\n cssGrid: boolean;\n cssFlexbox: boolean;\n cssCustomProperties: boolean;\n cssContainerQueries: boolean;\n webp: boolean;\n avif: boolean;\n webpLossless: boolean;\n webpAnimation: boolean;\n intersectionObserver: boolean;\n resizeObserver: boolean;\n mutationObserver: boolean;\n performanceObserver: boolean;\n manifest: boolean;\n beforeInstallPrompt: boolean;\n standalone: boolean;\n crypto: boolean;\n subtleCrypto: boolean;\n secureContext: boolean;\n}","FilterVisibleFieldsOptions":"/**\n * Options for owner-level visibility (per-document check).\n * Pass documentData, uid, and ownership so fields with visibility: 'owner' are included when uid matches an owner field.\n */\ntype FilterVisibleFieldsOptions = GetVisibleFieldsOptions;","FrameworkFeature":"/**\n * Framework feature type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype FrameworkFeature = (typeof FRAMEWORK_FEATURES)[keyof typeof FRAMEWORK_FEATURES];","GetVisibleFieldsOptions":"/**\n * Options for owner-level visibility (per-document check).\n */\ninterface GetVisibleFieldsOptions {\n documentData?: Record<string, unknown>;\n uid?: string;\n ownership?: EntityOwnershipConfig;\n}","HandleErrorOptions":"/** Options for the handleError utility. */\ninterface HandleErrorOptions {\n userMessage?: string;\n context?: Record<string, any>;\n log?: boolean;\n reportToSentry?: boolean;\n showNotification?: boolean;\n severity?: 'error' | 'warning' | 'info' | 'success';\n notificationTimeout?: number;\n}","IntersectionObserverCallback":"/**\n * Intersection observer callback function\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype IntersectionObserverCallback = (entries: IntersectionObserverEntry[]) => void;","IntersectionObserverOptions":"/**\n * Intersection Observer options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface IntersectionObserverOptions {\n threshold?: number | number[];\n rootMargin?: string;\n root?: Element | null;\n}","LockoutResult":"/** Result of a lockout status check for an identifier. */\ninterface LockoutResult {\n attempts: number;\n locked: boolean;\n lockedUntil: number | null;\n}","OS":"/**\n * Operating system type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype OS = 'windows' | 'macos' | 'linux' | 'android' | 'ios' | 'unknown';","PlatformInfo":"/**\n * Platform information interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface PlatformInfo {\n platform: Platform;\n version?: string;\n mode: EnvironmentMode;\n context: Context;\n metadata?: {\n nextjsRuntime?: string;\n viteHmrPort?: number;\n detectedAt?: number;\n };\n}","StorageError":"/**\n * Storage error interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface StorageError {\n type: StorageErrorType;\n message: string;\n originalError?: unknown;\n}","StorageErrorType":"/**\n * Storage error type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype StorageErrorType = 'quota_exceeded' | 'security_error' | 'unavailable' | 'unknown';","TokenManagerOptions":"/**\n * Configuration options for TokenManager\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface TokenManagerOptions {\n /**\n * Buffer time in milliseconds before expiration to consider a token as \"expiring soon\"\n * @default 120000 (2 minutes)\n */\n refreshBufferMs?: number;\n /**\n * Whether to automatically refresh tokens that are expiring soon\n * @default true\n */\n autoRefresh?: boolean;\n /**\n * Maximum number of refresh attempts before failing\n * @default 3\n */\n maxRefreshAttempts?: number;\n /**\n * Callback when the token expires and cannot be refreshed\n */\n onTokenExpired?: () => void;\n /**\n * Callback when a fatal error occurs\n */\n onFatalError?: (error: Error) => void;\n}","ViewportDetectionOptions":"/**\n * Viewport detection options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ViewportDetectionOptions {\n /**\n * Intersection threshold (0-1)\n * @default 0.1\n */\n threshold?: number;\n /**\n * Root margin for intersection observer\n * @default '50px'\n */\n rootMargin?: string;\n /**\n * Whether to trigger only once\n * @default false\n */\n once?: boolean;\n /**\n * Whether to track individual items\n * @default true\n */\n trackItems?: boolean;\n}","ViewportDetectionResult":"/**\n * Viewport detection result\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ViewportDetectionResult {\n /**\n * Whether the container is visible\n */\n isVisible: boolean;\n /**\n * Whether the container has been triggered at least once\n */\n hasTriggered: boolean;\n /**\n * Set of visible item indices\n */\n visibleItems: Set<number>;\n}","applyTheme":"/**\n * Apply theme to document with proper dark mode detection\n * Returns whether the applied theme is dark\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function applyTheme(themeName: string): boolean;","buildRoutePath":"/**\n * Build route path with dynamic parameters\n * @param basePath - Base path from file structure (e.g., '/blog')\n * @param params - Route parameters (e.g., ['slug'])\n * @returns Complete route path (e.g., '/blog/:slug')\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function buildRoutePath(basePath: string, params?: string[]): string;","createDoNotDevStore":"/**\n * Creates a DoNotDev store with framework conventions\n *\n * ## Usage Rules — READ vs CALL\n *\n * **Reading state (reactive):** Use selector hooks — component re-renders when value changes.\n * ```ts\n * const user = useAuthStore((s) => s.user); // ✅ Reactive state\n * const isReady = useFormStore((s) => s.isReady); // ✅ Reactive state\n * ```\n *\n * **Calling actions (imperative):** Use `getState()` — no subscription, stable reference.\n * ```ts\n * useEffect(() => {\n * useFormStore.getState().setIsDirty(formId, true); // ✅ Action via getState\n * return () => {\n * useUploadStore.getState().unregisterUpload(id); // ✅ Cleanup via getState\n * };\n * }, [formId]);\n * ```\n *\n * **NEVER** select actions via hooks or put them in dependency arrays:\n * ```ts\n * const setDirty = useFormStore((s) => s.setIsDirty); // ❌ Creates subscription\n * useEffect(() => { setDirty(id, true); }, [setDirty]); // ❌ Infinite loop risk\n *\n * const store = useUploadStore(); // ❌ Entire store = new ref every update\n * useEffect(() => { ... }, [store]); // ❌ Infinite loop\n * ```\n *\n * Middleware (devtools, persist) can break action reference stability,\n * making `getState()` the only safe pattern for imperative store access.\n *\n * @remarks\n * The `Record<string, any>` constraint on `T` is intentional. Using `unknown` instead of `any`\n * breaks all consumer store definitions because TypeScript's mapped types and index signatures\n * are incompatible with `unknown` in this position. Specifically, store state types use index\n * signatures (e.g., `[key: string]: ...`) that require `any` to satisfy the constraint.\n * This is a known TypeScript limitation — not a code quality issue.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createDoNotDevStore<T extends Record<string, any>>(config: DoNotDevStoreConfig<T>): UseBoundStore<StoreApi<T & DoNotDevStore>>;","extractRoutePath":"/**\n * Extract route path from page meta export\n * @param pageModule - Imported page module\n * @returns Route path string or undefined\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function extractRoutePath(pageModule: any): string | undefined;","getAvailableThemeNames":"/**\n * Get theme names only - derives from getAvailableThemes()\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableThemeNames(): string[];","getAvailableThemes":"/**\n * Get all available themes from build-time detection\n * Zero runtime cost - data injected by Vite plugin\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getAvailableThemes(): ThemeInfo[];","getRouteManifest":"/**\n * Get route manifest from globals (following i18n pattern)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRouteManifest(): RouteManifest | null;","getRouteSource":"/**\n * Get route source from globals\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRouteSource(): string;","getRoutes":"/**\n * Get route data from globals (following i18n pattern)\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRoutes(): RouteData[];","getSmartDefaults":"/**\n * Smart defaults for pages without explicit meta configuration\n * Uses convention-over-configuration approach\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getSmartDefaults(path: string, pageModule: any): Partial<RouteData['meta']>;","getThemeInfo":"/**\n * Get theme metadata for a given theme name\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getThemeInfo(themeName: string): ThemeInfo | null;","isDoNotDevStore":"/**\n * Type guard to check if a store is a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isDoNotDevStore(store: unknown): store is DoNotDevStore;","isValidTheme":"/**\n * Check if a theme is valid\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function isValidTheme(themeName: string): boolean;","resolveAuthConfig":"/**\n * Determine auth requirements with simple defaults\n * Default: false (public) - developer must explicitly specify auth requirements\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function resolveAuthConfig(path: string, pageModule: any): RouteData['auth'];","resolvePageMeta":"/**\n * Merge page meta with smart defaults\n * Only uses defaults for missing properties\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function resolvePageMeta(path: string, pageModule: any): RouteData['meta'];","useAbortControllerStore":"/**\n * Abort controller store for managing request cancellation\n *\n * **Architecture:**\n * This store provides centralized management of AbortController instances\n * for canceling HTTP requests and other async operations. It ensures\n * proper cleanup and prevents memory leaks from abandoned requests.\n *\n * **State Management:**\n * - `controllers`: Map of active AbortController instances keyed by request ID\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - HTTP request cancellation\n * - Async operation cleanup\n * - Component unmount handling\n * - Framework request management\n *\n * **Performance Features:**\n * - Efficient controller management with Map-based storage\n * - Automatic cleanup of abandoned controllers\n * - Memory leak prevention\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Create controller for request\n * const { createController } = useAbortControllerStore();\n * const controller = createController('user-fetch');\n *\n * // Cancel specific request\n * const { abortController } = useAbortControllerStore();\n * abortController('user-fetch');\n *\n * // Cancel all requests\n * const { abortAll } = useAbortControllerStore();\n * abortAll();\n * ```\n */\ndeclare const useAbortControllerStore: zustand.UseBoundStore<zustand.StoreApi<AbortControllerState & DoNotDevStore>>;","useAnalyticsConsent":"/**\n * Hook to get analytics consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useAnalyticsConsent: () => boolean;","useBreakpoint":"/**\n * Hook for accessing breakpoint state\n * Fine-grained selectors - subscribe only to the property you need\n * - Next.js SSR: Zustand handles SSR automatically\n * - Vite CSR: Uses store state (initialized with actual window size)\n * - Both: Store handles resize updates reactively\n *\n * @param key - Property key from BreakpointUtils to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to current breakpoint\n * const current = useBreakpoint('current');\n *\n * // Subscribe only to isMobile boolean\n * const isMobile = useBreakpoint('isMobile');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useBreakpoint<K extends keyof BreakpointAPI>(key: K): BreakpointAPI[K];","useConsent":"declare function useConsent<K extends keyof ConsentAPI>(key: K): ConsentAPI[K];","useConsentReady":"/**\n * Hook to check if consent store is ready\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useConsentReady: () => boolean;","useConsentStore":"/**\n * Consent store hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useConsentStore: zustand.UseBoundStore<zustand.StoreApi<ConsentAPI & DoNotDevStore>>;","useFeatureConsent":"/**\n * Hook for checking feature availability\n *\n * Now only checks if feature is available via env vars/package installation.\n * Consent is separate - only for cookies/tracking (GDPR).\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFeatureConsent(feature: string): boolean;","useFunctionalConsent":"/**\n * Hook to get functional consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useFunctionalConsent: () => boolean;","useHasConsented":"/**\n * Hook to check if user has consented\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useHasConsented: () => boolean;","useLanguage":"/**\n * Hook for accessing language state and actions\n * Fine-grained selectors — subscribe only to the property you need\n *\n * @param key - Property key from LanguageAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * const currentLanguage = useLanguage('currentLanguage');\n * const isRTL = useLanguage('isRTL');\n * const setLanguage = useLanguage('setLanguage');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLanguage<K extends keyof LanguageAPI>(key: K): LanguageAPI[K];","useLanguageReady":"/**\n * Convenience hook to check if LanguageStore is ready\n * Consistent with useThemeReady() / useConsentReady() pattern\n *\n * @returns true when LanguageStore has finished initialization\n *\n * @example\n * ```tsx\n * const isReady = useLanguageReady();\n * if (!isReady) return <Loading />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useLanguageReady: () => boolean;","useLanguageStore":"/**\n * Language store for managing language state as a first-class zustand concern.\n *\n * **Architecture:**\n * - Bidirectional sync with i18next: store → i18n via setLanguage(), i18n → store via languageChanged listener\n * - Persist: only `currentLanguage` is persisted (replaces async getUserLanguage/saveUserLanguage flow)\n * - RTL detection: inlined, no @donotdev/components dependency\n * - i18n instance: injected via initialize(), stored in module-level closure\n *\n * @example\n * ```tsx\n * // Fine-grained hook\n * const currentLanguage = useLanguage('currentLanguage');\n * const isRTL = useLanguage('isRTL');\n *\n * // Change language\n * useLanguageStore.getState().setLanguage('fr');\n *\n * // Check readiness\n * const isReady = useLanguageReady();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useLanguageStore: zustand.UseBoundStore<zustand.StoreApi<LanguageState & LanguageActions & DoNotDevStore>>;","useLayout":"/**\n * Hook for accessing layout state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from LayoutAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to layout preset\n * const preset = useLayout('layoutPreset');\n *\n * // Subscribe only to setLayoutPreset method\n * const setLayoutPreset = useLayout('setLayoutPreset');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLayout<K extends keyof LayoutAPI>(key: K): LayoutAPI[K];","useMarketingConsent":"/**\n * Hook to get marketing consent status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useMarketingConsent: () => boolean;","useNavigationStore":"/**\n * Navigation Store\n *\n * Provides centralized management of navigation routes with intelligent caching\n * and auth-based filtering. Integrates with route discovery system and provides\n * optimized data access for UI components.\n *\n * **Key Features:**\n * - Route discovery integration via globalThis._DNDEV_CONFIG_\n * - Automatic filtering of dynamic routes (/:id, /users/:userId) from navigation\n * - Auth-based route filtering with intelligent caching\n * - Route grouping by entity/domain for organized menus\n * - Performance optimization through memoization\n * - SSR-safe initialization patterns\n *\n * **Route Filtering:**\n * - Dynamic routes (containing `:`) are excluded from navigation menus\n * - Auth-based filtering applied per user permissions\n * - Routes cached by auth state key (authenticated-role)\n * - Groups computed once and reused across components\n * - Cache invalidation on route discovery changes\n *\n * **Performance:**\n * - Routes cached after first access\n * - Auth filtering memoized by state key\n * - Groups computed once at initialization\n * - Minimal re-renders with Zustand selectors\n *\n * @constant\n * @type {UseBoundStore<StoreApi<NavigationState & DoNotDevStore>>}\n * @since 0.0.1\n *\n * @example\n * ```typescript\n * // Get all routes\n * const allRoutes = useNavigationStore((state) => state.getAllRoutes());\n *\n * // Get filtered routes by auth\n * const routes = useNavigationStore((state) =>\n * state.getFilteredRoutes({ authenticated: true, role: 'admin' })\n * );\n *\n * // Get route groups\n * const groups = useNavigationStore((state) => state.getRouteGroups());\n * ```\n */\ndeclare const useNavigationStore: zustand.UseBoundStore<zustand.StoreApi<NavigationState & DoNotDevStore>>;","useNetwork":"/**\n * Hook for accessing network state\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetwork(): {\n reset: () => void;\n status: NetworkStatus;\n isOnline: boolean;\n isReconnected: boolean;\n isConnectionLost: boolean;\n connectionType: NetworkConnectionType;\n effectiveType: string | undefined;\n lastChecked: Date;\n}","useNetworkConnectionType":"/**\n * Selector hook for connection type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkConnectionType(): NetworkConnectionType;","useNetworkOnline":"/**\n * Selector hook for online status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkOnline(): boolean;","useNetworkStatus":"/**\n * Selector hook for network status\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useNetworkStatus(): NetworkStatus;","useNetworkStore":"/**\n * Network store for DoNotDev framework\n *\n * **Architecture:**\n * This store provides centralized network state management for the application.\n * It monitors network connectivity, connection quality, and provides real-time\n * updates about network status changes.\n *\n * **State Management:**\n * - `status`: Current network status including online state and connection type\n * - `isReconnected`: Whether the connection was recently restored\n * - `isConnectionLost`: Whether the connection was recently lost\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - Network monitoring components\n * - Offline/online state management\n * - Connection quality indicators\n * - Framework network utilities\n *\n * **Performance Features:**\n * - Efficient state updates with minimal re-renders\n * - Real-time network status monitoring\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Check network status\n * const { status, isReconnected } = useNetworkStore();\n *\n * // Monitor connection changes\n * const { setStatus } = useNetworkStore();\n * setStatus({ online: true, connectionType: 'wifi' });\n *\n * // Handle reconnection\n * const { setReconnected } = useNetworkStore();\n * setReconnected();\n * ```\n */\ndeclare const useNetworkStore: zustand.UseBoundStore<zustand.StoreApi<NetworkState & DoNotDevStore>>;","useOverlay":"/**\n * Hook for accessing overlay state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from OverlayAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to modal open state\n * const isOpen = useOverlay('isOpen');\n *\n * // Subscribe only to showRedirectOverlay method\n * const showRedirectOverlay = useOverlay('showRedirectOverlay');\n * showRedirectOverlay('stripe-checkout');\n *\n * // Subscribe only to redirect overlay state\n * const isRedirectOverlayOpen = useOverlay('isRedirectOverlayOpen');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useOverlay<K extends keyof OverlayAPI>(key: K): OverlayAPI[K];","useOverlayStore":"/**\n * Overlay store for managing all overlay types (modals, sheets, etc.)\n *\n * **Architecture:**\n * This store provides centralized overlay management for the application.\n * It handles modal state, sheet state, and provides a simple API for\n * opening and closing overlays throughout the application.\n *\n * **State Management:**\n * - `isOpen`: Whether a modal is currently open\n * - `content`: The React content to display in the modal\n * - `isSheetOpen`: Whether a sheet is currently open\n * - `isCommandDialogOpen`: Whether the command dialog (GlobalGoTo) is currently open\n * - `isReady`: Store initialization state\n *\n * **Integration Points:**\n * - Modal components that subscribe to this store\n * - Sheet components that subscribe to this store\n * - Application components that need to show overlays\n * - Framework overlay system integration\n * - Navigation cleanup (automatically closes all overlays)\n *\n * **Performance Features:**\n * - Efficient state updates with minimal re-renders\n * - Automatic cleanup when overlays are closed\n * - Zustand optimization for state management\n *\n * **SSR Compatibility:**\n * - Initializes with safe default values\n * - No client-only dependencies in store definition\n * - Hydration-safe state transitions\n *\n * @example\n * ```tsx\n * // Open a modal\n * const openModal = useOverlayStore((state) => state.openModal);\n * openModal(<MyModalContent />);\n *\n * // Close modal\n * const closeModal = useOverlayStore((state) => state.closeModal);\n * closeModal();\n *\n * // Open/close sheet\n * const isSheetOpen = useOverlayStore((state) => state.isSheetOpen);\n * const openSheet = useOverlayStore((state) => state.openSheet);\n * const closeSheet = useOverlayStore((state) => state.closeSheet);\n *\n * // Open/close command dialog (GlobalGoTo)\n * const isCommandDialogOpen = useOverlayStore((state) => state.isCommandDialogOpen);\n * const openCommandDialog = useOverlayStore((state) => state.openCommandDialog);\n * const closeCommandDialog = useOverlayStore((state) => state.closeCommandDialog);\n *\n * // Close all overlays (useful for navigation cleanup)\n * const closeAll = useOverlayStore((state) => state.closeAll);\n * closeAll();\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useOverlayStore: zustand.UseBoundStore<zustand.StoreApi<OverlayState & ExtendedOverlayActions & DoNotDevStore>>;","useTheme":"/**\n * Hook for accessing theme state and actions\n * Fine-grained selectors - subscribe only to the property you need\n *\n * @param key - Property key from ThemeAPI to subscribe to\n * @returns The value of the requested property\n *\n * @example\n * ```typescript\n * // Subscribe only to current theme\n * const currentTheme = useTheme('currentTheme');\n *\n * // Subscribe only to isDarkMode\n * const isDarkMode = useTheme('isDarkMode');\n *\n * // Subscribe only to setTheme method\n * const setTheme = useTheme('setTheme');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useTheme<K extends keyof ThemeAPI>(key: K): ThemeAPI[K];","useThemeReady":"/**\n * Convenience hook to check if ThemeStore is ready\n * Consistent with useI18nReady() pattern\n *\n * @returns true when ThemeStore has finished initialization (themes loaded)\n *\n * @example\n * ```tsx\n * const isReady = useThemeReady();\n * if (!isReady) return <Loading />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const useThemeReady: () => boolean;","useThemeStore":"/**\n * Simplified Theme Store - Clean Architecture\n *\n * SIMPLIFIED APPROACH:\n * - Store only stores the current preset name and app config\n * - CSS file handles all visual styling via [data-layout] selectors\n * - layoutConfigs.tsx maps presets to components\n * - DnDevLayout renders components directly\n * - No complex matrix logic or CSS variable management in JS\n */\ndeclare const useThemeStore: zustand.UseBoundStore<zustand.StoreApi<ExtendedThemeState & ThemeActions & LayoutActions & BreakpointActions & DoNotDevStore>>;","BreakpointAPI":"/**\n * Breakpoint API type - complete interface for useBreakpoint\n *\n * Maps each property of BreakpointUtils to its value type for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n *\n * @example\n * ```typescript\n * // Subscribe only to current breakpoint string\n * const current = useBreakpoint('current');\n *\n * // Subscribe only to width number\n * const width = useBreakpoint('width');\n *\n * // Subscribe only to isMobile boolean\n * const isMobile = useBreakpoint('isMobile');\n * ```\n */\ntype BreakpointAPI = BreakpointUtils;","DoNotDevStore":"/**\n * DoNotDev store interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevStore extends BaseStoreActions, BaseStoreState {\n readonly isReady: boolean;\n readonly _hasHydrated?: boolean;\n initialize(data?: Record<string, unknown>): Promise<boolean>;\n cleanup?(): void;\n}","DoNotDevStoreConfig":"/**\n * Configuration for creating a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface DoNotDevStoreConfig<T> {\n name: string;\n createStore: (set: (partial: Partial<T & DoNotDevStore> | ((state: T & DoNotDevStore) => Partial<T & DoNotDevStore>)) => void, get: () => T & DoNotDevStore, api: StoreApi<T & DoNotDevStore>) => T;\n initialize?: (data?: Record<string, unknown>) => Promise<boolean>;\n cleanup?: () => void;\n /**\n * Optional persist configuration\n * When provided, store state is persisted to storage\n *\n * @since 0.0.1\n */\n persistOptions?: Omit<PersistOptions<T & DoNotDevStore, Partial<T & DoNotDevStore>>, 'name'> & {\n /** Storage key name (required) */\n name: string;\n };\n}","DoNotDevStoreState":"/**\n * Extract the state type from a DoNotDev store\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype DoNotDevStoreState<T> = T extends (...args: any[]) => infer R ? R extends DoNotDevStore ? R : never : never;","LanguageAPI":"/**\n * Language API type — complete interface for useLanguage\n */\ntype LanguageAPI = LanguageState & LanguageActions;","LayoutAPI":"/**\n * Layout API type - complete interface for useLayout\n *\n * Maps all layout-related state and actions for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n */\ntype LayoutAPI = Pick<ExtendedThemeState & LayoutActions, 'layoutPreset' | 'layoutApp' | 'isLayoutLoading' | 'gameTitle' | 'gameSubtitle' | 'gameNamespace' | 'sidebarWidth' | 'routePresetOverride' | 'initializeLayout' | 'setLayoutPreset' | 'setLayoutLoading' | 'setGameTitle' | 'setGameSubtitle' | 'setGameNamespace' | 'setSidebarWidth' | 'setRoutePresetOverride' | 'routeHideBreadcrumbs' | 'setRouteHideBreadcrumbs'>;","OverlayAPI":"/**\n * Overlay API type - complete interface for useOverlay\n *\n * Maps each property of OverlayState & ExtendedOverlayActions to its value type\n * for fine-grained selectors. Components only subscribe to the specific property they need.\n *\n * @example\n * ```typescript\n * // Subscribe only to modal open state\n * const isOpen = useOverlay('isOpen');\n *\n * // Subscribe only to showRedirectOverlay method\n * const showRedirectOverlay = useOverlay('showRedirectOverlay');\n *\n * // Subscribe only to redirect overlay state\n * const isRedirectOverlayOpen = useOverlay('isRedirectOverlayOpen');\n * ```\n */\ntype OverlayAPI = OverlayState & ExtendedOverlayActions;","RouteData":"/**\n * Route data type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RouteData = RoutesPluginConfig['mapping'][0];","RouteManifest":"/**\n * Route manifest type\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ntype RouteManifest = RoutesPluginConfig['manifest'];","ThemeAPI":"/**\n * Theme API type - complete interface for useTheme\n *\n * Maps all theme-related state and actions for fine-grained selectors.\n * Components only subscribe to the specific property they need.\n */\ntype ThemeAPI = ThemeState & ThemeActions;","BACKEND_GENERATED_FIELD_NAMES":"/**\n * Fields that are TRULY backend-generated (cannot be set by user)\n * These are stripped from create operations - backend creates them automatically\n *\n * @category Field Families\n * @constant BACKEND_GENERATED_FIELD_NAMES\n */\ndeclare const BACKEND_GENERATED_FIELD_NAMES: readonly [\"id\", \"createdAt\", \"updatedAt\", \"createdById\", \"updatedById\"];","BulkDeleteIdSchema":"/**\n * Opaque delete-id schema — a single document id.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkDeleteIdSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkDeleteIdSchema, 'doc-123');\n */\ndeclare const BulkDeleteIdSchema: v.StringSchema<undefined>;","BulkInsertSchema":"/**\n * Opaque insert row schema.\n *\n * The bulk endpoint does not know the entity at parse time; per-field\n * validation is delegated to the CRUD service using the entity's `create`\n * schema. We only enforce the structural invariant: each insert is an object.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkInsertSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkInsertSchema, { name: 'Alice', age: 30 });\n */\ndeclare const BulkInsertSchema: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;","BulkRequestSchema":"/**\n * Wire schema for `POST /:collection/bulk` request body.\n *\n * All three op arrays are optional so clients can submit any subset.\n * An empty object `{}` is a valid no-op payload — the service short-circuits\n * and returns empty arrays without hitting the database.\n *\n * Per the bulk contract (see `BULK_CRUD_TODO.md`):\n * 1. Atomic — all ops succeed or none do.\n * 2. One round-trip.\n * 3. Validation up-front (per-entity schemas in CRUD service).\n * 4. Collision rejection (see `detectBulkCollisions`).\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkRequestSchema } from '@donotdev/schemas';\n *\n * const body = v.parse(BulkRequestSchema, {\n * inserts: [{ name: 'Alice' }],\n * updates: [{ id: 'a', patch: { name: 'Bob' } }],\n * deletes: ['c'],\n * });\n */\ndeclare const BulkRequestSchema: v.ObjectSchema<{\n readonly inserts: v.OptionalSchema<v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;\n readonly updates: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly patch: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n }, undefined>, undefined>, undefined>;\n readonly deletes: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;\n}","BulkResponseSchema":"/**\n * Wire schema for `POST /:collection/bulk` response body.\n *\n * Arrays preserve input order so consumers can zip the echoed ids back onto\n * the client-side op list (e.g. to reconcile optimistic cache entries).\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkResponseSchema } from '@donotdev/schemas';\n *\n * const result = v.parse(BulkResponseSchema, {\n * insertedIds: ['new-1'],\n * updatedIds: ['a'],\n * deletedIds: ['c'],\n * });\n */\ndeclare const BulkResponseSchema: v.ObjectSchema<{\n readonly insertedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n readonly updatedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n readonly deletedIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;\n}","BulkUpdateSchema":"/**\n * Opaque update row schema: `{ id, patch }`.\n *\n * `patch` keeps field-level validation deferred to the entity's `update`\n * schema, mirroring how single-row `update()` accepts a partial payload.\n *\n * @example\n * import * as v from 'valibot';\n * import { BulkUpdateSchema } from '@donotdev/schemas';\n *\n * v.parse(BulkUpdateSchema, { id: 'abc', patch: { name: 'Bob' } });\n */\ndeclare const BulkUpdateSchema: v.ObjectSchema<{\n readonly id: v.StringSchema<undefined>;\n readonly patch: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;\n}","CanvasBlockSchema":"declare const CanvasBlockSchema: v.ObjectSchema<{\n readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly kind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly lifetime: v.OptionalSchema<v.PicklistSchema<[\"ephemeral\", \"session\", \"persistent\"], undefined>, \"ephemeral\">;\n readonly metadata: v.OptionalSchema<v.ObjectSchema<{\n readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly pinnable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly preferredHeight: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;\n }, undefined>, undefined>;\n readonly payload: v.UnknownSchema;\n}","CanvasEventSchema":"declare const CanvasEventSchema: v.ObjectSchema<{\n readonly widgetId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly action: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;\n readonly payload: v.UnknownSchema;\n}","CanvasLifetimeSchema":"declare const CanvasLifetimeSchema: v.PicklistSchema<[\"ephemeral\", \"session\", \"persistent\"], undefined>;","CanvasWidgetMetadataSchema":"declare const CanvasWidgetMetadataSchema: v.ObjectSchema<{\n readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;\n readonly pinnable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;\n readonly preferredHeight: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;\n}","DEFAULT_STATUS_OPTIONS":"/**\n * Default status options for draft/publish/delete workflow\n * Framework provides 'draft', 'available', 'deleted' - consumers can extend\n *\n * Translation fallback order: entity-{name} → crud (never dndev)\n * - Framework defaults: crud:status.draft, crud:status.available, crud:status.deleted\n * - User overrides: entity-{name}_*.json files (e.g., entity-inquiry_en.json: \"status.draft\": \"New\")\n *\n * CRUD is optional and shouldn't pollute core framework (dndev) namespace\n */\ndeclare const DEFAULT_STATUS_OPTIONS: readonly [{\n readonly value: \"draft\";\n readonly label: \"crud:status.draft\";\n}","DEFAULT_STATUS_VALUE":"/**\n * Default status value for new documents (visible immediately).\n * Forms use 'draft' explicitly for save-and-finish-later flows.\n */\ndeclare const DEFAULT_STATUS_VALUE: \"available\";","HIDDEN_STATUSES":"/**\n * Statuses that are hidden from non-admin users\n */\ndeclare const HIDDEN_STATUSES: readonly [\"draft\", \"deleted\"];","ProxiedImageUrlSchema":"/**\n * Box-proxied image URL. Covers, avatars, thumbnails — every image in a\n * canvas widget MUST resolve through the box proxy.\n *\n * Accepted forms:\n * - `/proxy/...` — absolute proxy path on the same origin.\n * - `data:image/...` — inline data URI (agent-generated thumbnails).\n */\ndeclare const ProxiedImageUrlSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, \"Image URL must be box-proxied (/proxy/...) or an inline data:image URI.\">]>;","TECHNICAL_FIELD_NAMES":"/**\n * List of technical field names that are auto-generated by the backend\n * Includes backend-generated fields + status field\n *\n * These fields are optional in create schemas (backend creates them automatically).\n * They can be updated in update operations if provided.\n *\n * **Note**: Status is included here for visibility/editability logic but is NOT stripped\n * from form submissions since users MUST set it. Use BACKEND_GENERATED_FIELD_NAMES for stripping.\n *\n * @category Field Families\n * @constant TECHNICAL_FIELD_NAMES\n */\ndeclare const TECHNICAL_FIELD_NAMES: readonly [\"id\", \"createdAt\", \"updatedAt\", \"createdById\", \"updatedById\", \"status\"];","addressSchema":"declare const addressSchema: CustomSchemaGenerator;","arraySchema":"declare const arraySchema: CustomSchemaGenerator;","baseFields":"declare const baseFields: TypedBaseFields;","booleanSchema":"declare const booleanSchema: CustomSchemaGenerator;","clearSchemaGenerators":"/**\n * Clear all schema generators (testing)\n */\ndeclare function clearSchemaGenerators(): void;","clearScopeProviders":"/**\n * Clear all scope providers (for testing)\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function clearScopeProviders(): void;","createSchemas":"/**\n * Creates all operation-specific schemas from an entity definition\n *\n * Each schema field has `.visibility` attached for backend filtering.\n *\n * @param entity - Entity definition\n * @returns Operation-specific schemas with visibility metadata\n *\n * @example\n * ```typescript\n * const schemas = createSchemas(carEntity);\n * // schemas.create - for creating documents\n * // schemas.draft - for saving incomplete\n * // schemas.update - for partial updates\n * // schemas.get - for reading (includes technical fields)\n * // schemas.list - array of get\n * // schemas.delete - just { id }\n * ```\n */\ndeclare function createSchemas(entity: AnyEntity): OperationSchemas;","dateSchema":"declare const dateSchema: CustomSchemaGenerator;","defineEntity":"/**\n * Defines an entity with validation and default configuration\n *\n * Automatically adds technical fields (`id`, `createdAt`, `updatedAt`, `createdById`, `updatedById`)\n * with `visibility: 'technical'`. User-defined technical fields are merged with defaults, allowing\n * customization (e.g., `editable: 'admin'`, custom `label`, additional `validation`).\n *\n * @param entity - The business entity definition\n * @returns The validated and configured entity\n *\n * @example\n * ```typescript\n * export const productEntity = defineEntity({\n * name: 'Product',\n * collection: 'products',\n * fields: {\n * name: {\n * type: 'text',\n * visibility: 'user',\n * validation: { required: true, minLength: 3 }\n * },\n * // Customize technical field (optional)\n * createdAt: {\n * editable: 'admin',\n * label: 'Created Date'\n * }\n * },\n * // Override access defaults (optional)\n * access: { create: 'guest' } // Public inquiry form\n * });\n * ```\n *\n * **Technical Fields:**\n * - Automatically added: `id`, `createdAt`, `updatedAt`, `createdById`, `updatedById`, `status`\n * - Default: `visibility: 'technical'`, read-only in edit forms\n * - Customizable: Can override `editable`, `label`, `hint`, `validation` (merged with defaults)\n *\n * **Access Configuration:**\n * - Defaults: `{ read: 'guest', create: 'admin', update: 'admin', delete: 'admin' }`\n * - Uses role hierarchy: guest (0) < user (1) < admin (2) < super (3)\n * - Override individual operations: `access: { create: 'guest' }` for public forms\n * - Field visibility still applies for sensitive data filtering\n *\n * **Status Field (Draft/Publish/Delete):**\n * - Auto-added with `visibility: 'admin'` and options: `['draft', 'available', 'deleted']`\n * - Default value: `'available'` (new documents are published by default)\n * - `draft` and `deleted` statuses hidden from non-admin users (server-side filtering)\n * - `validation.required` on other fields only enforced when status !== 'draft'\n * - Extend options: `status: { validation: { options: [{ value: 'sold', label: 'sold' }] } }`\n * - Hide field: `status: { visibility: 'technical' }` if you don't want it in forms\n *\n * **Dropdown Options Format:**\n * - For `select`, `multiselect`, and `radio` field types, options must be defined in `validation.options`\n * - Options must be an array of objects with `value` (string) and `label` (string)\n * - Labels can use i18n keys (e.g., `'entities.product.status.active'`) for translation\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineEntity<const F extends Record<string, EntityField>>(entity: Omit<BusinessEntity<F>, 'fields'> & {\n fields: F;\n}","detectBulkCollisions":"/**\n * Detects id collisions that must reject a bulk op before any write.\n *\n * Separated from the Valibot parse so the wire schema stays purely structural\n * and callers can surface a precise error (which ids, which pair). Pure, no\n * side effects — the caller throws.\n *\n * Collision rules (see `BULK_CRUD_TODO.md` §7):\n * - Same id in `updates` and `deletes` → ambiguous intent, reject.\n * - Same id in `inserts` (if the client supplies an explicit `id`) and\n * `updates` → ambiguous intent, reject.\n * - Inserts without an explicit id never collide (server mints the id).\n *\n * Checks run in order: `updates-deletes` first, then `inserts-updates`. The\n * first collision found short-circuits — one clear error per request.\n *\n * @param ops - The bulk ops to inspect. All three arrays are optional.\n * @returns A report; `where === null` means no collision.\n *\n * @example\n * import { detectBulkCollisions } from '@donotdev/schemas';\n *\n * detectBulkCollisions({ updates: [{ id: 'a', patch: {} }], deletes: ['a'] });\n * // => { collisions: ['a'], where: 'updates-deletes' }\n */\ndeclare function detectBulkCollisions(ops: {\n inserts?: Array<{\n id?: string;\n [k: string]: unknown;\n }>;\n updates?: Array<{\n id: string;\n patch: unknown;\n }>;\n deletes?: string[];\n}","emailSchema":"declare const emailSchema: CustomSchemaGenerator;","enhanceSchema":"/**\n * Enhances a Valibot schema with additional metadata.\n *\n * @param schema - The base Valibot schema\n * @param metadata - The metadata to attach\n * @returns The enhanced schema\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function enhanceSchema<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, metadata: SchemaMetadata): dndevSchema<T>;","fileSchema":"declare const fileSchema: CustomSchemaGenerator;","filesSchema":"declare const filesSchema: CustomSchemaGenerator;","gdprConsentSchema":"declare const gdprConsentSchema: CustomSchemaGenerator;","geopointSchema":"declare const geopointSchema: CustomSchemaGenerator;","getCollectionName":"/**\n * Gets the collection name from a schema\n *\n * @param schema - The schema to get the collection name from\n * @returns The collection name\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getCollectionName(schema: dndevSchema<unknown>): string;","getRegisteredSchemaTypes":"/**\n * Get all registered schema types\n */\ndeclare function getRegisteredSchemaTypes(): string[];","getRegisteredScopeProviders":"/**\n * Get all registered scope provider names (for debugging)\n *\n * @returns Array of registered provider names\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRegisteredScopeProviders(): string[];","getSchemaType":"/**\n * Get Valibot schema for an entity field\n *\n * Priority order:\n * 1. field.validation?.schema (custom schema defined directly in entity)\n * 2. Registry lookup (built-in or registered custom types)\n * 3. Fallback to v.unknown() for unregistered types\n */\ndeclare function getSchemaType(field: EntityField<FieldType>): v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>>;","getScopeValue":"/**\n * Get the current scope value from a registered provider\n *\n * Used internally by CRUD operations to inject/filter by scope.\n *\n * @param providerName - Name of the registered provider\n * @returns Current scope ID, or null if not available\n *\n * @example\n * ```typescript\n * const companyId = getScopeValue('company');\n * if (!companyId) {\n * throw new Error('No company selected');\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function getScopeValue(providerName: string): string | null;","getWidget":"declare function getWidget(kind: string): RegisteredWidgetBase | undefined;","hasCustomSchemaGenerator":"/**\n * Check if a schema generator is registered\n */\ndeclare function hasCustomSchemaGenerator(type: string): boolean;","hasMetadata":"/**\n * Checks if an object has schema metadata (works with Valibot schemas)\n *\n * @param obj - The object to check\n * @returns Whether the object has schema metadata\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function hasMetadata(obj: unknown): obj is dndevSchema<unknown>;","hasScopeProvider":"/**\n * Check if a scope provider is registered\n *\n * @param providerName - Name of the provider to check\n * @returns True if provider is registered\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function hasScopeProvider(providerName: string): boolean;","ibanSchema":"declare const ibanSchema: CustomSchemaGenerator;","isBackendGeneratedField":"/**\n * Type guard to check if a field is backend-generated\n * @param fieldName - Field name to check\n * @returns True if field is auto-generated by backend\n *\n * @example\n * ```typescript\n * if (isBackendGeneratedField('createdAt')) {\n * // Field is backend-generated (should be stripped on create)\n * }\n * ```\n */\ndeclare function isBackendGeneratedField(fieldName: string): fieldName is BackendGeneratedField;","isFrameworkField":"/**\n * Type guard to check if a field name is a framework-managed field\n * @param fieldName - Field name to check\n * @returns True if field is in TECHNICAL_FIELD_NAMES\n *\n * @example\n * ```typescript\n * if (isFrameworkField('status')) {\n * // Field is framework-managed (cannot remove)\n * }\n * ```\n */\ndeclare function isFrameworkField(fieldName: string): fieldName is TechnicalField;","listWidgets":"declare function listWidgets(): readonly RegisteredWidgetBase[];","mapSchema":"declare const mapSchema: CustomSchemaGenerator;","multiselectSchema":"declare const multiselectSchema: CustomSchemaGenerator;","neverSchema":"declare const neverSchema: CustomSchemaGenerator;","numberSchema":"declare const numberSchema: CustomSchemaGenerator;","passwordSchema":"declare const passwordSchema: CustomSchemaGenerator;","pictureSchema":"declare const pictureSchema: CustomSchemaGenerator;","picturesSchema":"declare const picturesSchema: CustomSchemaGenerator;","priceSchema":"declare const priceSchema: CustomSchemaGenerator;","rangeOptions":"/**\n * Generates numeric range options for a select field.\n *\n * @param start - First number in the range\n * @param end - Last number in the range\n * @param step - Increment between numbers (default: 1)\n * @param descending - Whether to sort descending (default: false)\n * @returns Array of options with value and label\n *\n * @example\n * ```ts\n * // Quantities 1-10\n * options: rangeOptions(1, 10)\n *\n * // Percentages 0-100 by 10\n * options: rangeOptions(0, 100, 10)\n * ```\n */\ndeclare function rangeOptions(start: number, end: number, step?: number, descending?: boolean): SelectOption[];","referenceSchema":"declare const referenceSchema: CustomSchemaGenerator;","registerSchemaGenerator":"/**\n * Register a schema generator for a field type\n */\ndeclare function registerSchemaGenerator(type: string, generator: CustomSchemaGenerator): void;","registerScopeProvider":"/**\n * Register a scope provider function\n *\n * Call this once at app startup to register scope providers.\n * The provider function should return the current scope ID from your app's state.\n *\n * @param name - Provider name (e.g., 'company', 'tenant', 'workspace')\n * @param provider - Function that returns the current scope ID\n *\n * @example\n * ```typescript\n * // Using Zustand store\n * registerScopeProvider('company', () =>\n * useCurrentCompanyStore.getState().currentCompanyId\n * );\n *\n * // Using React context (via ref)\n * const companyIdRef = { current: null };\n * registerScopeProvider('company', () => companyIdRef.current);\n * // Update ref in your context provider\n * ```\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function registerScopeProvider(name: string, provider: ScopeProviderFn): void;","registerUniqueConstraintValidator":"/**\n * Registers a validator for uniqueness constraints\n *\n * @param validator - The validator implementation\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function registerUniqueConstraintValidator(validator: UniqueConstraintValidator): void;","registerWidget":"declare function registerWidget(widget: RegisteredWidgetBase): void;","selectSchema":"declare const selectSchema: CustomSchemaGenerator;","stringSchema":"declare const stringSchema: CustomSchemaGenerator;","switchSchema":"declare const switchSchema: CustomSchemaGenerator;","telSchema":"declare const telSchema: CustomSchemaGenerator;","textSchema":"/**\n * Schema generators exported for unified registry\n * These are also auto-registered below for backward compatibility\n */\ndeclare const textSchema: CustomSchemaGenerator;","unregisterScopeProvider":"/**\n * Unregister a scope provider (for testing or cleanup)\n *\n * @param name - Provider name to unregister\n *\n * @version 0.1.0\n * @since 0.0.4\n * @author AMBROISE PARK Consulting\n */\ndeclare function unregisterScopeProvider(name: string): void;","urlSchema":"declare const urlSchema: CustomSchemaGenerator;","validateBlock":"/**\n * Validate an incoming canvas block end-to-end: envelope shape, kind is\n * in the allowlist, payload conforms to the widget's payload schema, and\n * (optionally) the widget's surface is reachable by the caller's access tier.\n *\n * Failure ordering: envelope → kind → payload → surface. Surface-rejection\n * reasons are prefixed `surface_forbidden: ` so callers can distinguish\n * policy rejection from schema rejection.\n */\ndeclare function validateBlock(block: unknown, opts?: ValidateBlockOptions): ValidateResult<CanvasBlock>;","validateDates":"/**\n * Recursively validates that all string values that look like potential dates\n * within an object adhere to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ).\n *\n * @param data - The object or data structure to validate\n * @param {string} [currentPath=''] - Internal tracking of the object path for error messages\n * @throws Error if any string resembling a date is not in the correct ISO format\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateDates(data: Record<string, unknown> | unknown[], currentPath?: string): void;","validateDocument":"/**\n * Validates a document against the schema, including uniqueness and custom validations.\n * @param schema - The enhanced schema.\n * @param data - The document data.\n * @param operation - 'create' or 'update'.\n * @param currentDocId - Optional current document ID for update operations.\n * @throws DoNotDevError if validation fails.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateDocument<T>(schema: dndevSchema<T>, data: Record<string, unknown>, operation: 'create' | 'update', currentDocId?: string): Promise<void>;","validateEvent":"declare function validateEvent(event: unknown, widgetKind: string): ValidateResult<CanvasEvent>;","validateUniqueFields":"/**\n * Validates unique fields for a document across environments.\n *\n * @param schema - The Valibot schema with metadata.\n * @param data - The document data.\n * @param currentDocId - Optional ID of the current document (for updates).\n * @throws Error if a unique constraint is violated.\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function validateUniqueFields<T>(schema: dndevSchema<T>, data: Record<string, unknown>, currentDocId?: string): Promise<void>;","BackendGeneratedField":"/** Type for backend-generated field names */\ntype BackendGeneratedField = (typeof BACKEND_GENERATED_FIELD_NAMES)[number];","BulkCollisionReport":"/**\n * Report returned by {@link detectBulkCollisions}.\n *\n * `where` identifies the first category of collision encountered. `collisions`\n * lists the offending ids for that category. Callers decide how to surface\n * this (the CRUD service throws; server handlers return 400).\n *\n * @since 0.2.0\n */\ninterface BulkCollisionReport {\n /** Ids that appear in both collided sets. Empty iff `where === null`. */\n collisions: string[];\n /** Which pair collided, or `null` when no collision was found. */\n where: 'updates-deletes' | 'inserts-updates' | null;\n}","BulkRequest":"/**\n * Inferred request type for the bulk endpoint.\n *\n * @example\n * import type { BulkRequest } from '@donotdev/schemas';\n *\n * const req: BulkRequest = { deletes: ['a'] };\n */\ntype BulkRequest = v.InferOutput<typeof BulkRequestSchema>;","BulkResponse":"/**\n * Inferred response type for the bulk endpoint.\n *\n * @example\n * import type { BulkResponse } from '@donotdev/schemas';\n *\n * const res: BulkResponse = { insertedIds: [], updatedIds: [], deletedIds: [] };\n */\ntype BulkResponse = v.InferOutput<typeof BulkResponseSchema>;","CustomSchemaGenerator":"/**\n * Schema generator function type\n */\ntype CustomSchemaGenerator = (field: EntityField<FieldType>) => v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> | null;","OperationSchemas":"/**\n * Operation-specific schemas generated from entity\n */\ninterface OperationSchemas {\n /** Create: excludes technical fields, enforces required */\n create: dndevSchema<unknown>;\n /** Draft: excludes technical fields, all optional except status='draft' */\n draft: dndevSchema<unknown>;\n /** Update: excludes technical fields, all optional */\n update: dndevSchema<unknown>;\n /** Get: includes all fields with visibility metadata */\n get: dndevSchema<unknown>;\n /** List: optimized for admin table (uses listFields) */\n list: dndevSchema<unknown>;\n /** ListCard: optimized for public cards (uses listCardFields, falls back to listFields) */\n listCard: dndevSchema<unknown>;\n /** Delete: just { id: string } */\n delete: dndevSchema<unknown>;\n}","RegisteredWidgetBase":"/**\n * A widget as it lives in the registry. Widened to accept an arbitrary\n * component attachment so the UI package can register React components\n * without this module importing React.\n */\ninterface RegisteredWidgetBase<Kind extends string = string, PayloadSchema extends AnyValibotSchema = AnyValibotSchema, Actions extends Record<string, AnyValibotSchema> = Record<string, AnyValibotSchema>> extends WidgetDef<Kind, PayloadSchema, Actions> {\n readonly component: unknown;\n}","SchemaWithVisibility":"/**\n * Valibot schema with visibility metadata attached\n */\ninterface SchemaWithVisibility extends v.BaseSchema<unknown, unknown, v.BaseIssue<unknown>> {\n visibility?: Visibility;\n}","ScopeProviderFn":"/**\n * Function that returns the current scope ID from app state\n * Returns null if no scope is currently selected (e.g., no company selected)\n */\ntype ScopeProviderFn = () => string | null;","SelectOption":"/** Standard option format for select fields */\ninterface SelectOption {\n value: string;\n label: string;\n}","StatusField":"/** Type for the status field */\ntype StatusField = 'status';","TechnicalField":"/** Type for all technical field names */\ntype TechnicalField = (typeof TECHNICAL_FIELD_NAMES)[number];","TypedBaseFields":"/**\n * Type-safe base fields that all entities inherit\n * Each field has its specific type for proper TypeScript inference\n */\ninterface TypedBaseFields {\n id: EntityField<'text'>;\n createdAt: EntityField<'timestamp'>;\n updatedAt: EntityField<'timestamp'>;\n createdById: EntityField<'reference'>;\n updatedById: EntityField<'reference'>;\n status: EntityField<'select'>;\n}","ValidateResult":"type ValidateResult<T> = {\n readonly ok: true;\n readonly value: T;\n readonly widget: RegisteredWidgetBase;\n}","AppConfigContext":"/**\n * Application configuration context\n * @internal - Use `useAppConfig()` hook instead of accessing context directly\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const AppConfigContext: react.Context<AppConfig | null>;","AppConfigProvider":"/**\n * AppConfigProvider\n *\n * Centralized configuration provider with smart defaults and platform awareness.\n * Handles all configuration merging in one place - no prop drilling needed.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // Minimal - uses all defaults\n * <AppConfigProvider platform=\"vite\">\n * <App />\n * </AppConfigProvider>\n *\n * // Partial override\n * <AppConfigProvider\n * config={{ app: { name: 'My App' } }}\n * platform=\"vite\"\n * >\n * <App />\n * </AppConfigProvider>\n * ```\n */\ndeclare function AppConfigProvider({ config, platform, children, }","AuthSessionProvider":"/**\n * Provides the request's auth session snapshot (`null` = unknown).\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function AuthSessionProvider({ snapshot, children, }","QueryProviders":"/**\n * QueryProviders - TanStack Query Provider Component\n *\n * Wraps your app with TanStack Query (React Query) context.\n * Provides QueryClient with SSR safety and configurable cache defaults.\n *\n * **SSR Safety:**\n * - Uses getQueryClient() which creates new instance on server per-request\n * - Reuses singleton on client for cache persistence\n *\n * **Configuration:**\n * - Reads `query` config from `AppConfig` if available\n * - Applies config to QueryClient defaults\n * - Config is applied on first call (browser singleton)\n *\n * ⚠️ OPTIONAL: Only use this if your app needs CRUD operations\n * React Query is a large package - don't load it unless needed!\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const QueryProviders: React.ComponentType<{\n children: ReactNode;\n}","getQueryClient":"/**\n * Get or create QueryClient (SSR-safe)\n *\n * - Server: Always creates new instance (per-request isolation)\n * - Browser: Reuses singleton (cache persistence)\n *\n * @version 0.1.0\n * @since 0.0.3\n * @author AMBROISE PARK Consulting\n *\n * @example\n * ```tsx\n * // In your root layout/provider\n * function Providers({ children }) {\n * const queryClient = getQueryClient();\n * return (\n * <QueryClientProvider client={queryClient}>\n * {children}\n * </QueryClientProvider>\n * );\n * }\n * ```\n */\ndeclare function getQueryClient(queryConfig?: QueryConfig): QueryClient;","useAppConfig":"/**\n * useAppConfig hook\n *\n * Access the complete application configuration or a specific property.\n *\n * @example\n * ```tsx\n * // Get full config\n * const config = useAppConfig();\n * console.log(config.app?.name);\n *\n * // Get app metadata object\n * const app = useAppConfig('app');\n *\n * // Get specific property (shorthand)\n * const url = useAppConfig('url');\n * const name = useAppConfig('name');\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAppConfig(): AppConfig;","useAuthConfig":"/**\n * useAuthConfig hook\n *\n * Access authentication routes with defaults.\n *\n * @example\n * ```tsx\n * const auth = useAuthConfig();\n * navigate(auth.authRoute); // Always has default\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAuthConfig(): AuthConfig;","useAuthSessionSnapshot":"/**\n * The request's auth session snapshot, or `null` when the cookies cannot tell\n * (no provider, or an auth provider that does not keep its session in cookies).\n * Display only, and only meaningful until the auth provider is ready.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function useAuthSessionSnapshot(): AuthSessionSnapshot | null;","useBreathingTimer":"/**\n * Hook for managing a breathing timer with wake lock support\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useBreathingTimer({ duration, onComplete, }","useClickOutside":"/**\n * useClickOutside - Outside Click Detection Hook\n *\n * High-performance hook for detecting clicks outside of elements with support\n * for multiple elements and configurable event types. Perfect for dropdowns,\n * modals, and popover components.\n *\n * @param callback - Function to call when clicking outside\n * @param options - Configuration options for click outside detection\n * @returns Object containing ref and click outside state\n *\n * @example Basic dropdown\n * ```tsx\n * function Dropdown() {\n * const [isOpen, setIsOpen] = useState(false);\n * const { ref } = useClickOutside(() => setIsOpen(false));\n *\n * return (\n * <div className=\"relative\">\n * <button onClick={() => setIsOpen(!isOpen)}>\n * Toggle\n * </button>\n * {isOpen && (\n * <div className=\"absolute top-full left-0 bg-white shadow-lg\">\n * Dropdown content\n * </div>\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Modal with outside click\n * ```tsx\n * function Modal({ isOpen, onClose, children }) {\n * const { ref } = useClickOutside(onClose, {\n * enabled: isOpen\n * });\n *\n * if (!isOpen) return null;\n *\n * return (\n * <div className=\"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center\">\n * <div className=\"bg-white p-6 rounded-lg\">\n * {children}\n * </div>\n * </div>\n * );\n * }\n * ```\n *\n * @example Multiple elements\n * ```tsx\n * function ComplexComponent() {\n * const [isOpen, setIsOpen] = useState(false);\n * const triggerRef = useRef<HTMLButtonElement>(null);\n * const { ref } = useClickOutside(() => setIsOpen(false), {\n * ignoreElements: [triggerRef.current]\n * });\n *\n * return (\n * <div>\n * <button ref={triggerRef} onClick={() => setIsOpen(!isOpen)}>\n * Toggle\n * </button>\n * {isOpen && (\n * <div className=\"popover\">\n * Content\n * </div>\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Custom events\n * ```tsx\n * function CustomEvents() {\n * const { ref } = useClickOutside(() => console.log('Outside click'), {\n * events: ['mousedown', 'keydown'],\n * enabled: true\n * });\n *\n * return (\n * <div>\n * Click outside or press any key\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useClickOutside(callback: () => void, options?: UseClickOutsideOptions): UseClickOutsideReturn;","useDebounce":"/**\n * useDebounce - Debounced Value Management Hook\n *\n * High-performance hook for debouncing values with configurable delay and\n * immediate execution options. Perfect for search inputs, API calls, and\n * expensive computations.\n *\n * @template T - Type of the value being debounced\n * @param value - Value to debounce\n * @param options - Configuration options for debouncing\n * @returns Debounced value\n *\n * @example Search input debouncing\n * ```tsx\n * function SearchInput() {\n * const [query, setQuery] = useState('');\n * const debouncedQuery = useDebounce(query, { delay: 300 });\n *\n * useEffect(() => {\n * if (debouncedQuery) {\n * // Perform search API call\n * searchAPI(debouncedQuery);\n * }\n * }, [debouncedQuery]);\n *\n * return (\n * <input\n * type=\"text\"\n * value={query}\n * onChange={(e) => setQuery(e.target.value)}\n * placeholder=\"Search...\"\n * />\n * );\n * }\n * ```\n *\n * @example API call debouncing\n * ```tsx\n * function ApiComponent() {\n * const [data, setData] = useState(null);\n * const [loading, setLoading] = useState(false);\n * const debouncedId = useDebounce(id, { delay: 500 });\n *\n * useEffect(() => {\n * if (debouncedId) {\n * setLoading(true);\n * fetchData(debouncedId).then(setData).finally(() => setLoading(false));\n * }\n * }, [debouncedId]);\n *\n * return (\n * <div>\n * {loading && <Spinner />}\n * {data && <DataDisplay data={data} />}\n * </div>\n * );\n * }\n * ```\n *\n * @example Form validation debouncing\n * ```tsx\n * function FormInput() {\n * const [value, setValue] = useState('');\n * const [error, setError] = useState('');\n * const debouncedValue = useDebounce(value, { delay: 300 });\n *\n * useEffect(() => {\n * if (debouncedValue) {\n * validateInput(debouncedValue).then(setError);\n * }\n * }, [debouncedValue]);\n *\n * return (\n * <div>\n * <input\n * value={value}\n * onChange={(e) => setValue(e.target.value)}\n * className={error ? 'border-red-500' : 'border-gray-300'}\n * />\n * {error && <p className=\"text-red-500\">{error}</p>}\n * </div>\n * );\n * }\n * ```\n *\n * @example Immediate execution\n * ```tsx\n * function ImmediateDebounce() {\n * const [value, setValue] = useState('');\n * const debouncedValue = useDebounce(value, {\n * delay: 200,\n * immediate: true\n * });\n *\n * // Executes immediately on first call, then debounces\n * useEffect(() => {\n * console.log('Value changed:', debouncedValue);\n * }, [debouncedValue]);\n *\n * return (\n * <input\n * value={value}\n * onChange={(e) => setValue(e.target.value)}\n * />\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useDebounce<T>(value: T, options?: UseDebounceOptions): T;","useEventListener":"/**\n * useEventListener - Enterprise-Grade Event Listener Hook\n *\n * Uses React's battle-tested useEffect pattern.\n * Boring code that just works.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n * @param eventType - Type of event to listen for\n * @param handler - Event handler function\n * @param options - Configuration options for event listener\n * @returns Object containing listener state\n *\n * @example Basic usage\n * ```tsx\n * function WindowEvent() {\n * const [scrollY, setScrollY] = useState(0);\n *\n * useEventListener('scroll', () => {\n * setScrollY(window.scrollY);\n * });\n *\n * return <p>Scroll position: {scrollY}px</p>;\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useEventListener<TEvent extends Event = Event, TTarget extends EventTarget = Window>(eventType: string, handler: (event: TEvent) => void, options?: UseEventListenerOptions<TTarget>): UseEventListenerReturn;","useFaviconConfig":"/**\n * useFaviconConfig hook\n *\n * Access favicon configuration.\n *\n * @example\n * ```tsx\n * const favicon = useFaviconConfig();\n * if (!favicon) return null;\n * return <meta name=\"theme-color\" content={favicon.themeColor} />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFaviconConfig(): FaviconConfig | false | undefined;","useFeaturesConfig":"/**\n * useFeaturesConfig hook\n *\n * Access feature flags with defaults.\n *\n * @example\n * ```tsx\n * const features = useFeaturesConfig();\n * if (features.debug) return <DebugTools />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useFeaturesConfig(): FeaturesConfig;","useIntersectionObserver":"/**\n * useIntersectionObserver - Basic Intersection Observation Hook (React 19 Optimized)\n *\n * Lightweight hook for basic intersection observation with optimal performance.\n * Uses React 19's useSyncExternalStore pattern for automatic cleanup, proper\n * SSR handling, and tearing prevention in concurrent rendering.\n *\n * @param options - Configuration options for intersection observation\n * @returns Object containing ref, isIntersecting state, and entry\n *\n * @example Basic intersection detection\n * ```tsx\n * function IntersectionComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver();\n *\n * return (\n * <div ref={ref} className={isIntersecting ? 'visible' : 'hidden'}>\n * Content that appears when intersecting\n * </div>\n * );\n * }\n * ```\n *\n * @example With custom threshold\n * ```tsx\n * function ThresholdComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({\n * threshold: 0.5,\n * rootMargin: '50px'\n * });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting ? '50% visible' : 'Not visible enough'}\n * </div>\n * );\n * }\n * ```\n *\n * @example Once-only triggering (React 19 optimized)\n * ```tsx\n * function OnceComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({ once: true });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting && <ExpensiveComponent />}\n * </div>\n * );\n * }\n * ```\n *\n * @example SSR-safe implementation\n * ```tsx\n * function SSRComponent() {\n * const { ref, isIntersecting } = useIntersectionObserver({\n * fallbackIntersecting: true // Shows content during SSR\n * });\n *\n * return (\n * <div ref={ref}>\n * {isIntersecting ? 'Client-side' : 'SSR fallback'}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useIntersectionObserver<T extends Element = Element>(options?: UseIntersectionObserverOptions): UseIntersectionObserverReturn<T>;","useIsClient":"/**\n\n * SSR-safe React hook for client detection\n\n * Uses useSyncExternalStore to prevent hydration mismatches in Next.js\n\n *\n\n * Use this in React components instead of isClient() to avoid hydration errors.\n\n * For non-React code (stores, utils), use isClient() function from @donotdev/utils.\n\n *\n\n * @returns boolean indicating if running in browser/client environment\n\n *\n\n * @example\n\n * ```tsx\n\n * function MyComponent() {\n\n * const isClient = useIsClient();\n\n * if (!isClient) return null;\n\n * return <div>Client-only content</div>;\n\n * }\n\n * ```\n\n *\n\n * @version 0.1.0\n\n * @since 0.0.1\n\n * @author AMBROISE PARK Consulting\n\n */\ndeclare function useIsClient(): boolean;","useLocalStorage":"/**\n * useLocalStorage - Local Storage Management Hook\n *\n * High-performance hook for managing localStorage with type safety and SSR support.\n * Perfect for persisting user preferences, settings, and application state.\n *\n * @param key - localStorage key\n * @param options - Configuration options for localStorage management\n * @returns Object containing value, setters, and status\n *\n * @example Basic usage\n * ```tsx\n * function Preferences() {\n * const { value: theme, setValue: setTheme } = useLocalStorage('theme', {\n * defaultValue: 'light'\n * });\n *\n * return (\n * <div>\n * <p>Current theme: {theme}</p>\n * <button onClick={() => setTheme('dark')}>\n * Switch to dark\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * @example Complex object storage\n * ```tsx\n * function UserSettings() {\n * const { value: settings, setValue: setSettings } = useLocalStorage('userSettings', {\n * defaultValue: {\n * notifications: true,\n * language: 'en',\n * fontSize: 14\n * }\n * });\n *\n * const updateSetting = (key: string, value: any) => {\n * setSettings(prev => ({ ...prev, [key]: value }));\n * };\n *\n * return (\n * <div>\n * <label>\n * <input\n * type=\"checkbox\"\n * checked={settings.notifications}\n * onChange={(e) => updateSetting('notifications', e.target.checked)}\n * />\n * Notifications\n * </label>\n * </div>\n * );\n * }\n * ```\n *\n * @example Array storage\n * ```tsx\n * function TodoList() {\n * const { value: todos, setValue: setTodos } = useLocalStorage('todos', {\n * defaultValue: []\n * });\n *\n * const addTodo = (text: string) => {\n * setTodos(prev => [...prev, { id: Date.now(), text, completed: false }]);\n * };\n *\n * return (\n * <div>\n * {todos.map(todo => (\n * <div key={todo.id}>{todo.text}</div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Custom serializer\n * ```tsx\n * function CustomStorage() {\n * const { value: data, setValue: setData } = useLocalStorage('customData', {\n * defaultValue: { count: 0 },\n * serializer: {\n * serialize: (value) => btoa(JSON.stringify(value)),\n * deserialize: (value) => JSON.parse(atob(value))\n * }\n * });\n *\n * return (\n * <div>\n * <p>Count: {data.count}</p>\n * <button onClick={() => setData(prev => ({ count: prev.count + 1 }))}>\n * Increment\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * @example SSR-safe implementation\n * ```tsx\n * function SSRComponent() {\n * const { value: user, setValue: setUser, isLoaded } = useLocalStorage('user', {\n * defaultValue: null,\n * syncAcrossTabs: true\n * });\n *\n * if (!isLoaded) {\n * return <div>Loading...</div>;\n * }\n *\n * return (\n * <div>\n * {user ? `Welcome ${user.name}` : 'Please login'}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLocalStorage<T>(key: string, options: UseLocalStorageOptions<T>): UseLocalStorageReturn<T>;","useMutation":"declare function useMutation<TData = unknown, TError = Error, TVariables = void, TContext = unknown>(options: UseMutationOptionsWithErrorHandling<TData, TError, TVariables, TContext>): UseMutationResult<TData, TError, TVariables, TContext>;","useQuery":"declare function useQuery<TData = unknown, TError = Error>(options: UseQueryOptionsWithErrorHandling<TData, TError>): UseQueryResult<TData, TError>;","useScriptLoader":"/**\n * useScriptLoader - External Script Loading Hook\n *\n * High-performance hook for loading external scripts with proper error handling,\n * retry logic, and cleanup. Perfect for loading third-party SDKs like Google,\n * Stripe, analytics, or any external JavaScript libraries.\n *\n * @param src - Script source URL\n * @param options - Configuration options for script loading\n * @returns Object containing loading state, error, and control functions\n *\n * @example Basic script loading\n * ```tsx\n * function GoogleAnalytics() {\n * const { isLoading, isLoaded, error } = useScriptLoader(\n * 'https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID'\n * );\n *\n * if (isLoading) return <div>Loading Google Analytics...</div>;\n * if (error) return <div>Failed to load: {error.message}</div>;\n * if (isLoaded) return <div>Google Analytics loaded!</div>;\n *\n * return null;\n * }\n * ```\n *\n * @example Advanced configuration\n * ```tsx\n * function StripeIntegration() {\n * const { isLoading, isLoaded, error, retry } = useScriptLoader(\n * 'https://js.stripe.com/v3/',\n * {\n * loadOnIdle: true,\n * retry: true,\n * retryAttempts: 5,\n * timeout: 15000,\n * onLoad: () => console.log('Stripe loaded'),\n * onError: (error) => console.error('Stripe failed:', error),\n * attributes: {\n * 'data-stripe-publishable-key': 'pk_test_...'\n * }\n * }\n * );\n *\n * return (\n * <div>\n * {isLoading && <Spinner />}\n * {error && (\n * <div>\n * <p>Failed to load Stripe</p>\n * <button onClick={retry}>Retry</button>\n * </div>\n * )}\n * {isLoaded && <StripeCheckout />}\n * </div>\n * );\n * }\n * ```\n *\n * @example Conditional loading\n * ```tsx\n * function ConditionalScript() {\n * const [shouldLoad, setShouldLoad] = useState(false);\n *\n * const { isLoading, isLoaded } = useScriptLoader(\n * 'https://example.com/script.js',\n * {\n * enabled: shouldLoad,\n * loadOnIdle: true\n * }\n * );\n *\n * return (\n * <div>\n * <button onClick={() => setShouldLoad(true)}>\n * Load Script\n * </button>\n * {isLoading && <div>Loading...</div>}\n * {isLoaded && <div>Script ready!</div>}\n * </div>\n );\n * }\n * ```\n *\n * @example Custom loaded check\n * ```tsx\n * function CustomScript() {\n * const { isLoaded } = useScriptLoader(\n * 'https://accounts.google.com/gsi/client',\n * {\n * isLoaded: () => !!window.google?.accounts?.id,\n * onLoad: () => console.log('Google Identity Services ready')\n * }\n * );\n *\n * return isLoaded ? <GoogleSignIn /> : <div>Loading Google...</div>;\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useScriptLoader(src: string, options?: UseScriptLoaderOptions): UseScriptLoaderReturn;","useSeoConfig":"/**\n * useSeoConfig hook\n *\n * Access SEO configuration.\n *\n * @example\n * ```tsx\n * const seo = useSeoConfig();\n * if (!seo) return null; // Disabled\n * return <meta property=\"og:image\" content={seo.defaultImage} />;\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useSeoConfig(): SEOConfig | false | undefined;","useViewportVisibility":"/**\n * useViewportVisibility - Advanced Viewport Detection Hook\n *\n * High-performance hook for advanced viewport visibility tracking with item-level detection.\n * Perfect for complex animations, staggered reveals, and dynamic scroll-based effects.\n *\n * @param options - Configuration options for viewport visibility tracking\n * @returns Object containing ref, visibility state, and item tracking utilities\n *\n * @example Staggered animations (Reveal component)\n * ```tsx\n * function StaggeredAnimation() {\n * const { ref, isVisible, visibleItems, isItemVisible } = useViewportVisibility({\n * threshold: 0.1,\n * trackItems: true,\n * enableScrollListener: true\n * });\n *\n * return (\n * <div>\n * {items.map((item, index) => (\n * <div\n * key={index}\n * className={`transition-all duration-500 ${\n * isItemVisible(index) ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-4'\n * }`}\n * style={{ transitionDelay: `${index * 100}ms` }}\n * >\n * {item}\n * </div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Progressive reveal (StackedCards)\n * ```tsx\n * function ProgressiveReveal() {\n * const { ref, visibleItems } = useViewportVisibility({\n * threshold: 0.3,\n * rootMargin: '-70% 0px -30% 0px',\n * trackItems: true\n * });\n *\n * return (\n * <div>\n * {cards.map((card, index) => (\n * <div\n * key={index}\n * className={`card ${visibleItems.has(index) ? 'revealed' : 'hidden'}`}\n * >\n * {card}\n * </div>\n * ))}\n * </div>\n * );\n * }\n * ```\n *\n * @example Lazy loading with scroll optimization\n * ```tsx\n * function LazyLoadSection() {\n * const { ref, isVisible, visibleItems } = useViewportVisibility({\n * threshold: 0.1,\n * trackItems: true,\n * enableScrollListener: true,\n * once: false // Allow re-triggering\n * });\n *\n * return (\n * <div>\n * {isVisible ? (\n * <ExpensiveComponent />\n * ) : (\n * <div className=\"h-96 bg-gray-200 dndev-animate-pulse\" />\n * )}\n * </div>\n * );\n * }\n * ```\n *\n * @example Scroll-triggered effects\n * ```tsx\n * function ScrollTrigger() {\n * const { ref, isVisible, visibleItems } = useViewportVisibility({\n * threshold: 0.5,\n * rootMargin: '50px',\n * trackItems: false,\n * enableScrollListener: true\n * });\n *\n * return (\n * <div className=\"scroll-trigger\">\n * {isVisible && <AnimatedContent />}\n * </div>\n * );\n * }\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useViewportVisibility(options?: UseViewportVisibilityOptions): UseViewportVisibilityReturn;","AppConfigProviderProps":"/**\n * App config provider props interface\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface AppConfigProviderProps {\n /** User-provided configuration (merged with smart defaults) */\n config?: AppConfig;\n /** Platform for platform-specific defaults */\n platform?: Platform;\n /** Child components */\n children: ReactNode;\n}","UseClickOutsideOptions":"/**\n * Options for useClickOutside hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseClickOutsideOptions {\n /**\n * Event types to listen for\n * @default ['mousedown', 'touchstart']\n */\n events?: string[];\n /**\n * Whether the hook is enabled\n * @default true\n */\n enabled?: boolean;\n /**\n * Additional elements to ignore (e.g., triggers)\n */\n ignoreElements?: (Element | null)[];\n}","UseClickOutsideReturn":"/**\n * Return type for useClickOutside hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseClickOutsideReturn {\n /**\n * Ref to attach to the element to monitor\n */\n ref: React.RefObject<HTMLElement | null>;\n /**\n * Whether the element is currently being clicked outside\n */\n isClickOutside: boolean;\n}","UseDebounceOptions":"/**\n * Options for useDebounce hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseDebounceOptions<T = any> {\n /**\n * Debounce delay in milliseconds\n * @default 500\n */\n delay?: number;\n /**\n * Whether to execute immediately on first call\n * @default false\n */\n immediate?: boolean;\n /**\n * Initial value for SSR\n */\n initialValue?: T;\n}","UseEventListenerOptions":"/**\n * Options for useEventListener hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseEventListenerOptions<TTarget extends EventTarget = Window> {\n /**\n * Whether the event listener is enabled\n * @default true\n */\n enabled?: boolean;\n /**\n * Event listener options\n * @default { passive: true }\n */\n options?: AddEventListenerOptions;\n /**\n * Element to attach listener to\n * @default window\n */\n target?: TTarget | null;\n}","UseEventListenerReturn":"/**\n * Return type for useEventListener hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseEventListenerReturn {\n /**\n * Whether the event listener is active\n */\n isActive: boolean;\n}","UseIntersectionObserverOptions":"/**\n * Options for useIntersectionObserver hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseIntersectionObserverOptions {\n threshold?: number | number[];\n root?: Element | null;\n rootMargin?: string;\n once?: boolean;\n fallbackIntersecting?: boolean;\n}","UseIntersectionObserverReturn":"/**\n * Return type for useIntersectionObserver hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseIntersectionObserverReturn<T extends Element = Element> {\n ref: React.RefObject<T | null>;\n isIntersecting: boolean;\n hasTriggered: boolean;\n entry: IntersectionObserverEntry | null;\n}","UseLocalStorageOptions":"/**\n * Options for useLocalStorage hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseLocalStorageOptions<T> {\n /**\n * Default value for SSR or when key doesn't exist\n */\n defaultValue: T;\n /**\n * Whether to sync with other tabs\n * @default true\n */\n syncAcrossTabs?: boolean;\n /**\n * Custom serializer function\n */\n serializer?: {\n serialize: (value: T) => string;\n deserialize: (value: string) => T;\n };\n}","UseLocalStorageReturn":"/**\n * Return type for useLocalStorage hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseLocalStorageReturn<T> {\n /**\n * Current value from localStorage\n */\n value: T;\n /**\n * Set value in localStorage\n */\n setValue: (value: T | ((prev: T) => T)) => void;\n /**\n * Remove value from localStorage\n */\n removeValue: () => void;\n /**\n * Whether the value is loaded from localStorage\n */\n isLoaded: boolean;\n /**\n * Whether localStorage is available\n */\n isAvailable: boolean;\n}","UseMutationOptionsWithErrorHandling":"/**\n * Enhanced useMutation hook with framework defaults and error handling\n *\n * **Framework Defaults Applied:**\n * - `retry: 1` (one retry attempt on failure)\n * - `retryDelay: exponential backoff` (1s, 2s, 4s, ... max 30s)\n *\n * **Error Handling:**\n * - Errors are automatically wrapped with handleError()\n * - User-friendly error messages\n * - Optional notification display\n *\n * @template TData - Mutation data type\n * @template TError - Error type (defaults to Error)\n * @template TVariables - Variables type\n * @template TContext - Context type for optimistic updates\n * @param options - Mutation options (framework defaults merged with user options)\n * @returns Mutation result with reactive loading states\n *\n * @example\n * ```tsx\n * const { mutate, isPending, error } = useMutation({\n * mutationFn: (data) => createUser(data),\n * });\n * ```\n *\n * @example\n * ```tsx\n * // With custom error handling\n * const { mutate } = useMutation({\n * mutationFn: (data) => createUser(data),\n * userMessage: 'Failed to create user',\n * showNotification: true,\n * onError: (error) => {\n * console.error('Custom error handler', error);\n * },\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseMutationOptionsWithErrorHandling<TData, TError = Error, TVariables = void, TContext = unknown> extends UseMutationOptions<TData, TError, TVariables, TContext> {\n /** User-friendly error message (optional) */\n userMessage?: string;\n /** Show toast notification on error (default: false) */\n showNotification?: boolean;\n}","UseQueryOptionsWithErrorHandling":"/**\n * Enhanced useQuery hook with framework defaults and error handling\n *\n * **Framework Defaults Applied:**\n * - `staleTime: Infinity` (data never becomes stale - manual refresh only)\n * - `retry: 1` (one retry attempt on failure)\n * - `refetchOnWindowFocus: false` (no automatic refetch on focus)\n * - `refetchOnReconnect: false` (no automatic refetch on reconnect)\n *\n * **Error Handling:**\n * - Errors are automatically wrapped with handleError()\n * - User-friendly error messages\n * - Optional notification display\n *\n * **SSR Safety:**\n * - Automatically disables queries on server if `ssr: false` is set\n * - Preserves SSR behavior by default\n *\n * @template TData - Query data type\n * @template TError - Error type (defaults to Error)\n * @param options - Query options (framework defaults merged with user options)\n * @returns Query result with reactive loading states\n *\n * @example\n * ```tsx\n * const { data, isLoading, error } = useQuery({\n * queryKey: ['users', userId],\n * queryFn: () => fetchUser(userId),\n * });\n * ```\n *\n * @example\n * ```tsx\n * // With custom error handling\n * const { data } = useQuery({\n * queryKey: ['users', userId],\n * queryFn: () => fetchUser(userId),\n * userMessage: 'Failed to load user',\n * showNotification: true,\n * onError: (error) => {\n * console.error('Custom error handler', error);\n * },\n * });\n * ```\n *\n * @example\n * ```tsx\n * // Disable SSR for client-only queries\n * const { data } = useQuery({\n * queryKey: ['client-only'],\n * queryFn: () => fetchClientData(),\n * ssr: false, // Won't run on server\n * });\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseQueryOptionsWithErrorHandling<TData, TError = Error> extends UseQueryOptions<TData, TError> {\n /** User-friendly error message (optional) */\n userMessage?: string;\n /** Show toast notification on error (default: false) */\n showNotification?: boolean;\n /** Disable query on server (default: false, preserves SSR) */\n ssr?: boolean;\n /** Custom error handler (optional) */\n onError?: (error: TError) => void;\n}","UseScriptLoaderOptions":"/**\n * Options for useScriptLoader hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseScriptLoaderOptions {\n /**\n * Whether the script should be loaded\n * @default true\n */\n enabled?: boolean;\n /**\n * Whether to load script immediately or wait for idle\n * @default false (load immediately)\n */\n loadOnIdle?: boolean;\n /**\n * Timeout for script loading in milliseconds\n * @default 10000 (10 seconds)\n */\n timeout?: number;\n /**\n * Whether to retry on failure\n * @default true\n */\n retry?: boolean;\n /**\n * Number of retry attempts\n * @default 3\n */\n retryAttempts?: number;\n /**\n * Delay between retries in milliseconds\n * @default 1000 (1 second)\n */\n retryDelay?: number;\n /**\n * CSP nonce for script security\n */\n nonce?: string;\n /**\n * Script attributes\n */\n attributes?: Record<string, string>;\n /**\n * Callback when script loads successfully\n */\n onLoad?: () => void;\n /**\n * Callback when script fails to load\n */\n onError?: (error: Error) => void;\n /**\n * Whether to check if script is already loaded\n * @default true\n */\n checkExisting?: boolean;\n /**\n * Function to check if script is already available\n * @default checks for script.src in document\n */\n isLoaded?: () => boolean;\n /**\n * Manual loading mode - script only loads when load() is called\n * @default false (auto-load when enabled)\n */\n manual?: boolean;\n}","UseScriptLoaderReturn":"/**\n * Return type for useScriptLoader hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseScriptLoaderReturn {\n /**\n * Whether the script is currently loading\n */\n isLoading: boolean;\n /**\n * Whether the script has loaded successfully\n */\n isLoaded: boolean;\n /**\n * Error if script loading failed\n */\n error: Error | null;\n /**\n * Whether the script is ready to use\n */\n isReady: boolean;\n /**\n * Manually trigger script loading\n */\n load: () => void;\n /**\n * Manually retry loading\n */\n retry: () => void;\n /**\n * Reset loading state\n */\n reset: () => void;\n /**\n * Whether load() has been called (tracks manual trigger)\n */\n loadTriggered: boolean;\n}","UseViewportVisibilityOptions":"/**\n * Options for useViewportVisibility hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseViewportVisibilityOptions {\n /**\n * Intersection threshold (0-1)\n * @default 0.1\n */\n threshold?: number;\n /**\n * Root margin for intersection observer\n * @default '50px'\n */\n rootMargin?: string;\n /**\n * Whether to trigger only once\n * @default false\n */\n once?: boolean;\n /**\n * Whether to track individual items\n * @default true\n */\n trackItems?: boolean;\n /**\n * Whether to enable scroll listener for item tracking\n * @default true\n */\n enableScrollListener?: boolean;\n}","UseViewportVisibilityReturn":"/**\n * Return type for useViewportVisibility hook\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface UseViewportVisibilityReturn {\n /**\n * Ref to attach to the container element\n */\n ref: React.RefObject<HTMLDivElement | null>;\n /**\n * Whether the container is visible\n */\n isVisible: boolean;\n /**\n * Whether the container has been triggered at least once\n */\n hasTriggered: boolean;\n /**\n * Set of visible item indices\n */\n visibleItems: Set<number>;\n /**\n * Whether a specific item is visible\n */\n isItemVisible: (index: number) => boolean;\n}","COUNTRIES":"declare const COUNTRIES: readonly CountryData[];","FAQSection":"/**\n * FAQSection component for displaying frequently asked questions\n * Handles translations internally using translateObjectArray\n *\n * @example\n * // Basic usage\n * const { t } = useTranslation(['faq']);\n * <FAQSection t={t} keyPrefix=\"faqs.items\" maxIndex={30} />\n *\n * @example\n * // With custom styling\n * <FAQSection\n * t={t}\n * keyPrefix=\"faqs.items\"\n * maxIndex={30}\n * className=\"mx-auto\" style={{ maxWidth: '56rem' }}\n * aria-label=\"Frequently Asked Questions\"\n * />\n */\ndeclare function FAQSection({ t, keyPrefix, maxIndex, className, 'aria-label': ariaLabel, }","Flag":"declare function Flag({ code, className, style, title, }","LANGUAGES":"/**\n * Complete language data array with all information\n * Single source of truth for all language-related data\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LANGUAGES: readonly LanguageData[];","LanguageFAB":"/**\n * Fixed floating language pill (top-end) with dropdown selector.\n *\n * - **0-1 languages:** Hidden\n * - **2 languages:** Tapping toggles directly\n * - **3+ languages:** Dropdown menu\n *\n * @example\n * ```tsx\n * <LanguageFAB />\n * <LanguageFAB format=\"native\" showFlag={false} />\n * ```\n *\n * @public\n */\ndeclare const LanguageFAB: ({ \"aria-label\": ariaLabel, className, showFlag, showFlags, format, }","LanguageSelector":"/**\n * Header/nav language selector with dropdown presentation.\n *\n * Adapts to the number of available languages:\n * - **0-1 languages:** Hidden\n * - **2 languages:** Toggle button (swap on click)\n * - **3+ languages:** Dropdown menu\n *\n * For mobile-first bottom sheet selection, use `LanguageFAB` instead.\n *\n * @example\n * ```tsx\n * // Basic dropdown (compact)\n * <LanguageSelector />\n *\n * // Dropdown with flags and names\n * <LanguageSelector\n * showFlags={true}\n * showNames={true}\n * className=\"custom-class\"\n * />\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare const LanguageSelector: ({ display, variant, showFlags, showNames, className, }","LanguageToggleGroup":"/**\n * Inline segmented toggle buttons for language selection.\n *\n * Compact button group — each language gets a button, active one is highlighted.\n * For mobile-first bottom sheet selection, use `LanguageFAB` instead.\n *\n * @example\n * ```tsx\n * // Basic horizontal toggle\n * <LanguageToggleGroup\n * languages={['en', 'es', 'fr']}\n * orientation=\"horizontal\"\n * />\n *\n * // Vertical with flags and names\n * <LanguageToggleGroup\n * languages={['en', 'es', 'fr', 'de']}\n * orientation=\"vertical\"\n * showFlags={true}\n * showNames={true}\n * />\n *\n * // Compact header style\n * <LanguageToggleGroup\n * languages={['en', 'es']}\n * variant=\"ghost\"\n * />\n * ```\n *\n * @public\n */\ndeclare const LanguageToggleGroup: ({ languages, orientation, size, showFlags, showNames, className, showLoading, variant, }","RequestLanguageProvider":"/**\n * Provides the request language to `useTranslation` for the server render and the\n * client's hydration pass. Rendered by the Next providers with the language resolved\n * from the request (language cookie, Accept-Language); the same props reach the\n * client, so both passes translate identically.\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function RequestLanguageProvider({ language, children, }","TRANS_TAGS":"/**\n * List of available predefined tags for documentation/AI reference\n */\ndeclare const TRANS_TAGS: readonly [\"accent\", \"primary\", \"muted\", \"success\", \"warning\", \"error\", \"bold\", \"code\"];","Trans":"/**\n * Rich text translation component with predefined styling tags.\n *\n * Use this instead of `t()` when you need inline styling in translations.\n * Plain `t()` returns raw string with tags visible as text.\n *\n * @example\n * ```tsx\n * // Translation: \"<accent>MVP</accent> in 2 weeks\"\n * <Trans ns={NAMESPACE} i18nKey=\"hero.title\" />\n *\n * // With custom components\n * <Trans\n * ns={NAMESPACE}\n * i18nKey=\"hero.title\"\n * components={{ highlight: <mark /> }}\n * />\n * ```\n */\ndeclare function Trans({ components, ...props }","TranslatedText":"/**\n * TranslatedText component for dynamic translations\n * 100% Lighthouse accessibility compliant with proper ARIA support\n *\n * @example\n * // Basic usage\n * <TranslatedText i18nKey=\"welcome.message\" fallback=\"Welcome!\" />\n *\n * @example\n * // With accessibility\n * <TranslatedText\n * i18nKey=\"user.greeting\"\n * values={{ name: 'John' }}\n * fallback=\"Hello {{name}}\"\n * aria-live=\"polite\"\n * />\n *\n * @example\n * // Screen reader only\n * <TranslatedText\n * i18nKey=\"instructions.screen_reader\"\n * fallback=\"Navigate using arrow keys\"\n * srOnly\n * />\n *\n * @example\n * // Interactive elements\n * <TranslatedText\n * i18nKey=\"button.save\"\n * component=\"button\"\n * aria-label=\"Save document\"\n * fallback=\"Save\"\n * />\n */\ndeclare function TranslatedText({ i18nKey, namespace, fallback, values, component: Component, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-live': ariaLive, srOnly, ...props }","getCountries":"/**\n * Get countries from languages that have country codes\n * Reuses existing language/flag mapping, just adds country code and dial code\n */\ndeclare function getCountries(): CountryData[];","getFlagCodes":"declare function getFlagCodes(): string[];","getI18nInstance":"/**\n * Creates the i18next instance with all configuration and initialization\n * Uses the framework's singleton pattern for clean instance management\n *\n * HMR-safe: Store instance globally to survive module reloads\n */\ndeclare const getI18nInstance: () => i18n;","getRequestLanguage":"/**\n * Language of a request, from its `Cookie` and `Accept-Language` headers: language\n * cookie > Accept-Language > fallback. Pure on its inputs, so the server render and\n * the client's hydration pass (given the same header values as props) agree.\n *\n * @param cookieHeader - The request's `Cookie` header\n * @param acceptLanguage - The request's `Accept-Language` header\n *\n * @version 0.1.0\n * @since 0.1.50\n * @author AMBROISE PARK Consulting\n */\ndeclare function getRequestLanguage(cookieHeader: string | null | undefined, acceptLanguage: string | null | undefined): string;","getSupportedLanguages":"/**\n * Get supported languages with flags and native names\n *\n * Returns an array of language objects with id, name, flag emoji,\n * and native name. Only includes languages that are enabled in config.\n *\n * @returns Array of language information objects\n *\n * @example\n * ```tsx\n * const languages = getSupportedLanguages();\n * // Returns: [{ id: 'en', name: 'English', flag: '🇺🇸', nativeName: 'English' }, ...]\n * ```\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function getSupportedLanguages(): LanguageInfo[];","hasFlag":"declare function hasFlag(code: string): boolean;","useI18nReady":"/**\n * Hook to check if i18n is ready for use\n * Useful for conditional rendering based on translation readiness\n *\n * @returns boolean indicating if translations are ready\n *\n * @example\n * ```tsx\n * function MyComponent() {\n * const isReady = useI18nReady();\n *\n * if (!isReady) {\n * return <Skeleton />;\n * }\n *\n * return <TranslatedContent />;\n * }\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useI18nReady(): boolean;","useLanguageSelector":"/**\n * Language selector utility hook\n *\n * Provides shared logic for all language selector components including\n * language list, current language detection, language switching, and\n * loading state management.\n *\n * Uses the zustand language store when initialized, with transparent\n * fallback to direct i18next access for resilience.\n *\n * @returns Language selector state and actions\n *\n * @example\n * ```tsx\n * const { languages, currentLanguage, changeLanguage, isLoading } = useLanguageSelector();\n *\n * return (\n * <select onChange={(e) => changeLanguage(e.target.value)}>\n * {languages.map(lang => (\n * <option key={lang.code} value={lang.code}>\n * {lang.name}\n * </option>\n * ))}\n * </select>\n * );\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useLanguageSelector(): {\n /** Array of supported languages with code, name, flag, and native name */\n languages: LanguageData[];\n /** Current active language code */\n currentLanguage: any;\n /** Function to change the current language */\n changeLanguage: (lng: string) => Promise<void>;\n /** Whether a language change is in progress */\n isLoading: boolean;\n /** Selector mode: 'none' (0-1 langs), 'toggle' (2 langs), 'dropdown' (3+ langs) */\n mode: string;\n /** For toggle mode: the inactive language to switch to */\n otherLanguage: LanguageData | null;\n}","useTranslation":"/**\n * Primary translation hook for DoNotDev framework\n *\n * **Architecture**: Uses singleton pattern for clean instance management.\n * The singleton handles all initialization, this hook just provides the translation function.\n *\n * **SSR Safety**: The server render and the client's hydration pass translate in the\n * request language (RequestLanguageProvider), from the inline `content` both sides load\n * synchronously. Both passes produce the same text, so the first paint is translated\n * and hydration matches. After hydration the live instance takes over; it starts in the\n * same language (language cookie, see getInitialLanguage).\n *\n * **Performance**: Stable references, minimal re-renders, efficient memoization.\n *\n * @param namespace - Translation namespace (defaults to 'dndev' for framework components)\n * @returns Translation function, i18next instance, and ready state\n *\n * @example\n * ```tsx\n * // Framework components - use default 'dndev' namespace\n * const { t } = useTranslation();\n * return <button>{t('actions.save')}</button>; // → 'Save'\n * ```\n *\n * @example\n * ```tsx\n * // Application components - specify namespace\n * const { t } = useTranslation('products');\n * return <h1>{t('catalog.title')}</h1>; // → 'Product Catalog'\n * ```\n *\n * @example\n * ```tsx\n * // Interpolation and fallbacks\n * const { t } = useTranslation('user');\n * return (\n * <span>\n * {t('greeting', { name: 'John', defaultValue: 'Hello {{name}}' })}\n * </span>\n * ); // → 'Hello John'\n * ```\n *\n * @example\n * ```tsx\n * // Array translations - use indexed access\n * const { t } = useTranslation('features');\n * const benefits = [0, 1, 2]\n * .map(i => t(`benefits.${i}`))\n * .filter(text => text && !text.startsWith('['));\n * ```\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function useTranslation(namespace?: string | string[]): UseTranslationResult;","CountryData":"/** Country metadata for phone inputs and country selectors. */\ntype CountryData = {\n code: string;\n dialCode: string;\n flagCode: string;\n /** Display name for the country in the current UI language */\n name: string;\n}","DoNotDevTransProps":"/**\n * Trans component props - extends i18next TransProps\n */\ntype DoNotDevTransProps = Omit<TransProps<string>, 'components' | 'ns'> & {\n /** Namespace - accepts any string */\n ns?: string;\n /** Additional custom components (merged with predefined ones) */\n components?: Record<string, ReactElement>;\n}","FAQSectionProps":"/** Props for the FAQ accordion section with i18n support. */\ninterface FAQSectionProps {\n /** Translation function from useTranslation hook */\n t: TFunction;\n /** Base key prefix for the FAQ items (e.g., 'faqs.items') */\n keyPrefix: string;\n /** Maximum number of FAQ items to check (exclusive, so 50 means indices 0-49) */\n maxIndex?: number;\n /** CSS class name for the container */\n className?: string;\n /** CSS class name for each accordion item */\n itemClassName?: string;\n /** ARIA label for the FAQ section */\n 'aria-label'?: string;\n}","LanguageFABFormat":"/**\n * Label format for the pill trigger\n * @public\n */\ntype LanguageFABFormat = 'code' | 'name' | 'native';","LanguageFABProps":"/**\n * Props for LanguageFAB component\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageFABProps {\n /** Accessibility label for the pill */\n 'aria-label'?: string;\n /** Additional CSS classes */\n className?: string;\n /** Show flag in the pill trigger @default true */\n showFlag?: boolean;\n /** Show flags in the language list @default true */\n showFlags?: boolean;\n /** Pill label format @default 'code' */\n format?: LanguageFABFormat;\n}","LanguageSelectorProps":"/**\n * Props for LanguageSelector component\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageSelectorProps {\n /**\n * Display - controls language selector presentation in preset layouts\n * - 'compact': Icon-only button (dropdown trigger)\n * - 'full': Flag + language name + \">\" (labeled button)\n * - 'auto': Responsive (default)\n * @default 'auto'\n */\n display?: (typeof DISPLAY)[keyof typeof DISPLAY];\n /**\n * Button variant for the language selector trigger.\n * @default 'outline'\n */\n variant?: (typeof BUTTON_VARIANT)[keyof typeof BUTTON_VARIANT];\n /** Whether to show flag icons in the selector */\n showFlags?: boolean;\n /** Whether to show language names or just language codes */\n showNames?: boolean;\n /** Additional CSS classes */\n className?: string;\n}","LanguageToggleGroupProps":"/**\n * Props for LanguageToggleGroup component\n *\n * @public\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface LanguageToggleGroupProps {\n /** Array of language codes to display */\n languages?: string[];\n /** Orientation of the toggle group */\n orientation?: ToggleOrientation;\n /** Size variant */\n size?: ToggleSize;\n /** Whether to show flag icons */\n showFlags?: boolean;\n /** Whether to show language names or just codes */\n showNames?: boolean;\n /** Additional CSS classes */\n className?: string;\n /** Whether to show loading state */\n showLoading?: boolean;\n /** Custom variant for the toggle buttons */\n variant?: 'primary' | 'outline' | 'ghost';\n}","ToggleOrientation":"/**\n * Orientation for the toggle group\n * @public\n */\ntype ToggleOrientation = 'horizontal' | 'vertical';","ToggleSize":"/**\n * Size variants for the toggle group\n * @public\n */\ntype ToggleSize = 'sm' | 'md' | 'lg';","TransTag":"/** Allowed tag names for the Trans component's rich text interpolation. */\ntype TransTag = (typeof TRANS_TAGS)[number];","I18n":"class I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {\n ownPostProcessors: new Set()\n };\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (!options.ns.includes('translation')) {\n options.defaultNS = options.ns[0];\n }\n }\n const fallbackLngIsDefault = options.fallbackLng === undefined && this.options.fallbackLng === undefined;\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n if (typeof this.options.overloadTranslationOptionHandler !== 'function') {\n this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (loggerOwner && loggerOwner !== this && loggerOwner.modules.logger !== this.modules.logger) {\n baseLogger.deprecate('init: this init() replaces the logger another i18next instance set with use(), as the logger is shared in v26; from v27 each instance keeps its own logger');\n }\n loggerOwner = this.modules.logger ? this : undefined;\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n this.pendingWarnings?.forEach(msg => this.logger.warn(msg));\n this.pendingWarnings = undefined;\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator\n });\n if (formatter) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this),\n reloadResources: this.reloadResources.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.devIsDefaultFallback = fallbackLngIsDefault;\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n if (s.languageDetector.async && callbackApiOf(s.languageDetector) === undefined) {\n this.logger.deprecate('languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated');\n }\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if ((this.languages || this.isLanguageChangingTo) && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (!toLoad.includes(l)) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) {\n const requested = Object.keys(this.services.backendConnector.state).map(name => name.split('|')[0]);\n lngs = [...new Set([...(this.languages || []), ...requested])].filter(l => l !== 'cimode');\n }\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n const setModule = type => {\n if (this.modules[type] && this.modules[type] !== module) {\n const msg = `use: this ${type} replaces the ${type} passed to an earlier use() call; only one ${type} is used per instance`;\n if (this.isInitializing || this.isInitialized) this.logger.warn(msg);else (this.pendingWarnings = this.pendingWarnings || []).push(msg);\n }\n this.modules[type] = module;\n };\n if (module.type === 'backend') {\n setModule('backend');\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n setModule('languageDetector');\n }\n if (module.type === 'i18nFormat') {\n setModule('i18nFormat');\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n this.services.ownPostProcessors?.add(module.name);\n }\n if (module.type === 'formatter') {\n setModule('formatter');\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n hydrate(resources, lng) {\n if (this.options.isClone) return this;\n if (!this.services.resourceStore) {\n this.logger.warn('hydrate: call init() first, the instance has no resource store yet');\n return this;\n }\n if (resources && !this.initializedStoreOnce) {\n this.services.resourceStore.data = resources;\n Object.values(resources).forEach(lngResources => {\n Object.keys(lngResources).forEach(ns => {\n if (!this.options.ns.includes(ns)) this.options.ns.push(ns);\n });\n });\n this.initializedStoreOnce = true;\n this.isInitialized = true;\n }\n if (lng && !this.initializedLanguageOnce) {\n this.changeLanguage(lng);\n this.initializedLanguageOnce = true;\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].includes(l)) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].includes(lngInLngs)) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && !this.languages.includes(l) && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l && this.logger.debug && !isSafeLanguageCode(l)) {\n const configured = [].concat(this.options.supportedLngs || [], this.services.languageUtils.getFallbackCodes(this.options.fallbackLng, l), this.options.preload || []);\n if (!configured.includes(l) && !Object.prototype.hasOwnProperty.call(this.store.data, l)) {\n this.logger.once(`lng:${l}`, 'deprecate', `changeLanguage: the language code '${l.slice(0, 64)}' comes from lng, changeLanguage() or the language detector and is not configured; from v27 such a code is refused unless it has only letters, digits, '-', '_', '@' and '.' (no '..'), at most 128 characters. Set supportedLngs, or check the code before passing it on`);\n }\n }\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n const callbackApi = callbackApiOf(this.services.languageDetector);\n if (callbackApi === false || callbackApi === undefined && this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix, fixedOpts) {\n const scopeNs = fixedOpts?.scopeNs;\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n const explicitCallNs = o.ns !== undefined && o.ns !== null;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const selectorOpts = {\n ...this.options,\n ...o\n };\n if (Array.isArray(scopeNs) && !explicitCallNs) selectorOpts.ns = scopeNs;\n if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n if (!this.translator) {\n this.logger.warn('t: called before init(); returning an empty string');\n return '';\n }\n return this.translator.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n const {\n languageUtils\n } = this.services;\n const loadLng = !options.lng ? lng : languageUtils.isSupportedCode(lng) && languageUtils.toResolveHierarchy(lng, false)[0];\n if ((!loadLng || loadNotPending(loadLng, ns)) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (!this.options.ns.includes(n)) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'ltr';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.includes(languageUtils.getLanguagePartFromCode(lng)) || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n const instance = new I18n(options, callback);\n instance.createInstance = I18n.createInstance;\n return instance;\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) {\n options = {\n ...options\n };\n delete options.forkResourceStore;\n }\n const mergedOptions = {\n ...this.options,\n preload: false,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n ...clone.services.utils,\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone),\n reloadResources: clone.reloadResources.bind(clone)\n };\n if (forkResourceStore) {\n const copyData = obj => {\n const copied = Array.isArray(obj) ? [...obj] : {\n ...obj\n };\n Object.keys(copied).forEach(k => {\n if (copied[k] && typeof copied[k] === 'object') copied[k] = copyData(copied[k]);\n });\n return copied;\n };\n const clonedData = copyData(this.store.data);\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n if (options.interpolation) {\n const defOpts = get();\n const mergedInterpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation,\n ...options.interpolation\n };\n const mergedForInterpolator = {\n ...mergedOptions,\n interpolation: mergedInterpolation\n };\n clone.services.interpolator = new Interpolator(mergedForInterpolator);\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.newestCloneHasLoadedNamespace = clone.hasLoadedNamespace.bind(clone);\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n }","Utils":"class Utils{static emptyInts(){return[]}static isByteArray(ee){return Array.isArray(ee)||ee instanceof Uint8Array}static isalnum(ee){return Ye.CODES.get(\"0\")<=ee&&ee<=Ye.CODES.get(\"9\")||Ye.CODES.get(\"a\")<=ee&&ee<=Ye.CODES.get(\"z\")||Ye.CODES.get(\"A\")<=ee&&ee<=Ye.CODES.get(\"Z\")}static unhex(ee){return Ye.CODES.get(\"0\")<=ee&&ee<=Ye.CODES.get(\"9\")?ee-Ye.CODES.get(\"0\"):Ye.CODES.get(\"a\")<=ee&&ee<=Ye.CODES.get(\"f\")?ee-Ye.CODES.get(\"a\")+10:Ye.CODES.get(\"A\")<=ee&&ee<=Ye.CODES.get(\"F\")?ee-Ye.CODES.get(\"A\")+10:-1}static escapeRune(ee){let te=\"\";if(nt.isPrint(ee))ye.METACHARACTERS.indexOf(String.fromCodePoint(ee))>=0&&(te+=\"\\\\\"),te+=String.fromCodePoint(ee);else switch(ee){case Ye.CODES.get('\"'):te+='\\\\\"';break;case Ye.CODES.get(\"\\\\\"):te+=\"\\\\\\\\\";break;case Ye.CODES.get(\"\\t\"):te+=\"\\\\t\";break;case Ye.CODES.get(\"\\n\"):te+=\"\\\\n\";break;case Ye.CODES.get(\"\\r\"):te+=\"\\\\r\";break;case Ye.CODES.get(\"\\b\"):te+=\"\\\\b\";break;case Ye.CODES.get(\"\\f\"):te+=\"\\\\f\";break;default:{let ne=ee.toString(16);ee<256?(te+=\"\\\\x\",1===ne.length&&(te+=\"0\"),te+=ne):te+=`\\\\x{${ne}}`;break}}return te}static stringToRunes(ee){const te=String(ee),ne=[];let re=0;for(;re<te.length;){const ee=te.codePointAt(re);ne.push(ee),re+=ee>nt.MAX_BMP?2:1}return ne}static runeToString(ee){return String.fromCodePoint(ee)}static isWordRune(ee){return ee<256&&1===rt[ee]}static emptyOpContext(ee,te){let ne=0;return ee<0&&(ne|=ye.EMPTY_BEGIN_TEXT|ye.EMPTY_BEGIN_LINE),10===ee&&(ne|=ye.EMPTY_BEGIN_LINE),te<0&&(ne|=ye.EMPTY_END_TEXT|ye.EMPTY_END_LINE),10===te&&(ne|=ye.EMPTY_END_LINE),ye.isWordRune(ee)!==ye.isWordRune(te)?ne|=ye.EMPTY_WORD_BOUNDARY:ne|=ye.EMPTY_NO_WORD_BOUNDARY,ne}static quoteMeta(ee){return ee.split(\"\").map((ee=>ye.METACHARACTERS.indexOf(ee)>=0?`\\\\${ee}`:ee)).join(\"\")}static charCount(ee){return ee>nt.MAX_BMP?2:1}static toArray(ee){const te=ee.length,ne=new Array(te);for(let re=0;re<te;re++)ne[re]=ee[re];return ne}static stringToUtf8ByteArray(ee){if(globalThis.TextEncoder)return st||(st=new TextEncoder),ye.toArray(st.encode(ee));{let te=[],ne=0;for(let re=0;re<ee.length;re++){let se=ee.charCodeAt(re);se<128?te[ne++]=se:se<2048?(te[ne++]=se>>6|192,te[ne++]=63&se|128):(64512&se)===nt.MIN_HIGH_SURROGATE&&re+1<ee.length&&(64512&ee.charCodeAt(re+1))===nt.MIN_LOW_SURROGATE?(se=nt.MIN_SUPPLEMENTARY_CODE_POINT+((1023&se)<<10)+(1023&ee.charCodeAt(++re)),te[ne++]=se>>18|240,te[ne++]=se>>12&63|128,te[ne++]=se>>6&63|128,te[ne++]=63&se|128):(te[ne++]=se>>12|224,te[ne++]=se>>6&63|128,te[ne++]=63&se|128)}return te}}static utf8ByteArrayToString(ee){if(globalThis.TextDecoder){it||(it=new TextDecoder(\"utf-8\"));const te=ee instanceof Uint8Array?ee:new Uint8Array(ee);return it.decode(te)}{let te=[],ne=0,re=0;for(;ne<ee.length;){let se=ee[ne++];if(se<128)te[re++]=String.fromCharCode(se);else if(se>191&&se<224){let ie=ee[ne++];te[re++]=String.fromCharCode((31&se)<<6|63&ie)}else if(se>239&&se<365){let ie=((7&se)<<18|(63&ee[ne++])<<12|(63&ee[ne++])<<6|63&ee[ne++])-nt.MIN_SUPPLEMENTARY_CODE_POINT;te[re++]=String.fromCharCode(nt.MIN_HIGH_SURROGATE+(ie>>10)),te[re++]=String.fromCharCode(nt.MIN_LOW_SURROGATE+(1023&ie))}else{let ie=ee[ne++],ae=ee[ne++];te[re++]=String.fromCharCode((15&se)<<12|(63&ie)<<6|63&ae)}}return te.join(\"\")}}}","ConfigOptions":"/**\n * Configuration options for DNDev applications\n *\n * Provides comprehensive configuration for Vite-based applications with\n * built-in support for routing, theming, internationalization, and SEO.\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface ConfigOptions {\n /** App config from app.ts - features and SEO will be extracted automatically (required) */\n appConfig: AppConfig;\n /** Debug mode - disables minification, enables sourcemaps, preserves console logs */\n debug?: boolean;\n /** Verbose logging - shows config/search paths (opt-out, auto-disabled in CI) */\n verbose?: boolean;\n /** Base public path */\n base?: string;\n /** Build mode */\n mode?: 'development' | 'production';\n /** Build configuration */\n build?: BuildConfig;\n /** Module resolution options */\n resolve?: ResolveOptions;\n /** Development server configuration */\n server?: ServerOptions;\n /** Preview server configuration (reuses ServerOptions) */\n preview?: ServerOptions;\n /** Internationalization options */\n i18n?: I18nOptions;\n /** Progressive Web App options */\n pwa?: PWAOptions;\n /** Asset management options */\n assets?: AssetOptions;\n /** Theme detection options */\n themes?: ThemeDetectionOptions;\n /** Route discovery options */\n routes?: RouteDiscoveryOptions;\n /** Chunking configuration options */\n chunking?: ChunkingOptions;\n /** Server shim options */\n serverShim?: ServerShimOptions;\n /** Dependency optimization options */\n optimizeDeps?: OptimizeDepsOptions;\n /** Environment directory (default: Vite auto-resolves relative to vite.config.ts) */\n envDir?: string;\n /** Environment variable prefixes */\n envPrefix?: string | string[];\n /** Additional Vite plugins */\n plugins?: any[];\n /** Prerender options - false to disable, array for explicit routes, object for full config (default: auto-discovers public routes) */\n prerender?:\n | false\n | string[]\n | {\n /** Routes to prerender - 'auto' discovers from manifest, array for explicit (default: 'auto') */\n routes?: string[] | 'auto';\n };\n /** Enable DnDev dashboard plugin (terminal, file API, HMR watcher). Only for the dndev app. */\n dndev?: boolean | Record<string, unknown>;\n}","defineViteConfig":"/**\n * Creates a complete Vite configuration optimized for DNDev applications\n *\n * @param options - Configuration options\n * @returns Complete Vite configuration object\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineViteConfig(\n options?: ConfigOptions | string | boolean\n): any;","definePostCSSConfig":"/**\n * Create PostCSS configuration for Next.js consumer apps.\n * Handles @fontsource CSS alias and workspace-aware package resolution.\n *\n * @example\n * ```js\n * // postcss.config.js\n * import { definePostCSSConfig } from '@donotdev/core/next';\n * export default definePostCSSConfig();\n * ```\n */\ndeclare function definePostCSSConfig(): Promise<{ plugins: Array<unknown> }","getMetadataForPath":"/**\n * Get Next.js Metadata object for a given path.\n * Reads pre-built metadata from manifest generated at build time.\n *\n * @example\n * ```tsx\n * // app/layout.tsx\n * import { getMetadataForPath } from '@donotdev/core/next';\n *\n * export async function generateMetadata() {\n * return getMetadataForPath('/');\n * }\n * ```\n *\n * @param path - Route path (e.g., '/', '/about')\n * @param locale - Current locale (defaults to manifest's defaultLocale)\n * @param options - Additional options\n */\ndeclare function getMetadataForPath(\n path: string,\n locale?: string,\n options?: { siteName?: string }","clearMetadataCache":"/**\n * Clear the metadata manifest cache.\n * Useful for development hot-reload scenarios.\n */\ndeclare function clearMetadataCache(): void;","NextConfigOptions":"/**\n * Next.js configuration options for DNDev applications\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface NextConfigOptions {\n /** App config from app.ts - features and SEO will be extracted automatically (required) */\n appConfig: AppConfig;\n /** Debug mode - enables detailed debug logging */\n debug?: boolean;\n /** Verbose logging - shows config/search paths (opt-out, auto-disabled in CI) */\n verbose?: boolean;\n /** Route discovery configuration (uses DRY RouteDiscoveryOptions) */\n routes?: RouteDiscoveryOptions & {\n /** Generate app/** page files (Site template) (default: true) */\n generateAppPages?: boolean;\n /** Routing mode for Next.js */\n routingMode?: 'pages' | 'app';\n /** Generate authentication middleware */\n generateMiddleware?: boolean;\n };\n /** Internationalization configuration (uses DRY I18nOptions) */\n i18n?: I18nOptions;\n /** Theme configuration (uses DRY ThemeDetectionOptions) */\n themes?: ThemeDetectionOptions;\n /** Asset configuration (uses DRY AssetOptions) */\n assets?: AssetOptions;\n /** Generate route manifest */\n generateManifest?: boolean;\n /** PWA configuration */\n pwa?: PWAOptions;\n /** Server shim options */\n serverShim?: ServerShimOptions;\n /** Standard Next.js config options (webpack, rewrites, headers, etc.) - passed through as-is */\n [key: string]: any;\n}","defineNextConfig":"/**\n * Creates a Next.js configuration optimized for DNDev applications\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function defineNextConfig(options?: NextConfigOptions): any;","EsbuildOptions":"/**\n * Esbuild configuration options\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ninterface EsbuildOptions {\n entry?: string;\n outDir?: string;\n minify?: boolean;\n sourcemap?: boolean;\n platform?: 'firebase' | 'vercel' | 'framework';\n bundleWorkspaceDeps?: boolean;\n importFramework?: boolean;\n external?: boolean;\n}","createFunctionsEsbuildConfig":"/**\n * Create esbuild configuration for functions\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createFunctionsEsbuildConfig(\n options?: EsbuildOptions\n): BuildOptions;","createRootFunctionsConfig":"/**\n * Create root functions esbuild configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createRootFunctionsConfig(\n options?: EsbuildOptions\n): BuildOptions;","createAppFunctionsConfig":"/**\n * Create app functions esbuild configuration\n *\n * @version 0.1.0\n * @since 0.0.1\n * @author AMBROISE PARK Consulting\n */\ndeclare function createAppFunctionsConfig(\n options?: EsbuildOptions\n): BuildOptions;","AutoDetectOptions":"/** Auto-detection options for YAML generation */\ninterface AutoDetectOptions {\n /** Path to entry file for export detection (e.g., 'src/index.ts') */\n entryFile?: string;\n /** Path to .env file for secret detection (default: '.env') */\n envPath?: string;\n}","detectExportedFunctions":"/**\n * Auto-detect exported function names from entry file\n */\ndeclare function detectExportedFunctions(entryFile: string): string[];","detectSecretsFromEnv":"/**\n * Auto-detect secret keys from .env file (non-config keys)\n */\ndeclare function detectSecretsFromEnv(envPath?: string): string[];","generateFunctionsYaml":"/**\n * Generate functions.yaml content from config\n */\ndeclare function generateFunctionsYaml(\n config: FunctionsConfig,\n options?: AutoDetectOptions\n): string;","generateFunctionsYamlWithInfo":"/**\n * Generate yaml and return metadata\n */\ndeclare function generateFunctionsYamlWithInfo(\n config: FunctionsConfig,\n options?: AutoDetectOptions\n): {\n yaml: string;\n functions: string[];\n staticFunctions: string[];\n crudFunctions: string[];\n autoDetected: string[];\n autoSecrets: string[];\n}","filterEnvSecrets":"/**\n * Filter .env secrets for Firebase deployment\n * Strips secret keys from .env and moves them to .env.local (emulator-only)\n */\ndeclare function filterEnvSecrets(config: FunctionsConfig): {\n stripped: string[];\n kept: number;\n}","BuildFunctionsOptions":"/** Build options for buildFunctions */\ninterface BuildFunctionsOptions {\n /** Entry point file (default: 'src/index.ts') */\n entry?: string;\n /** Output directory (default: 'lib') */\n outDir?: string;\n /** Minify output (default: true in production) */\n minify?: boolean;\n /** Generate source maps (default: true) */\n sourcemap?: boolean;\n /** Print bundle analysis (default: false) */\n analyze?: boolean;\n /** Entry file for auto-detection (default: 'src/index.ts') */\n entryFile?: string;\n /** .env path for secret detection (default: '.env') */\n envPath?: string;\n}","buildFunctions":"/**\n * Build Firebase Functions in one call.\n * Handles: esbuild bundling, functions.yaml generation, .env secret filtering.\n *\n * @example\n * ```js\n * import { buildFunctions } from '@donotdev/core/functions';\n * import { functionsConfig } from './functions.config.js';\n *\n * buildFunctions(functionsConfig);\n * ```\n */\ndeclare function buildFunctions(\n functionsConfig: FunctionsConfig,\n options?: BuildFunctionsOptions\n): Promise<void>;"}
|