import type { PageMove } from '../project/pages.js'; import type { SubmissionListParams } from '../project/submissions.js'; import type { MoteurClient } from '../client.js'; import { type MediaSettingsUpdate, type StorageSettings } from '../project/mediaSettings.js'; import { type ProjectApiKeyCreateBody, type ProjectApiKeyPatchBody } from '../project/apiKeys.js'; import type { CreateScheduleInput, ListSchedulesOptions } from '@moteurio/types'; /** Project-scoped API: same HTTP routes as the root client, with `projectId` fixed. */ export declare function createProjectClient(client: MoteurClient, projectId: string): { projectId: string; project: { get: () => Promise<{ project: import("@moteurio/types").ProjectSchema; }>; update: (body: Record) => Promise<{ project: import("@moteurio/types").ProjectSchema; }>; delete: () => Promise; users: () => Promise<{ users: import("@moteurio/types").ProjectMemberUser[]; }>; }; branches: { list: () => Promise<{ branches: string[]; current?: string; }>; create: (name: string, from?: string) => Promise<{ branch: string; from: string; }>; switch: (branch: string) => Promise<{ branch: string; }>; merge: (sourceBranch: string) => Promise<{ merged: string; }>; }; radar: { get: (options?: { fullScan?: boolean; severity?: string; model?: string; locale?: string; ruleId?: string; }) => Promise; }; comments: { list: (params: { resourceType: string; resourceId: string; includeResolved?: boolean; fieldPath?: string; }) => Promise<{ comments: import("@moteurio/types").Comment[]; }>; add: (body: { resourceType: string; resourceId: string; body: string; fieldPath?: string; blockId?: string; parentId?: string; }) => Promise<{ comment: import("@moteurio/types").Comment; }>; resolve: (commentId: string) => Promise<{ comment: import("@moteurio/types").Comment; }>; delete: (commentId: string) => Promise; edit: (commentId: string, body: { body: string; }) => Promise<{ comment: import("@moteurio/types").Comment; }>; }; activity: { list: (params?: { limit?: number; before?: string; }) => Promise; }; models: { list: () => Promise<{ models: import("@moteurio/types").ModelSchema[]; }>; get: (modelId: string) => Promise<{ model: import("@moteurio/types").ModelSchema; }>; create: (body: Record) => Promise<{ model: import("@moteurio/types").ModelSchema; }>; update: (modelId: string, body: Record) => Promise<{ model: import("@moteurio/types").ModelSchema; }>; delete: (modelId: string) => Promise; }; entries: { list: (modelId: string, params?: Parameters<(projectId: string, modelId: string, params?: import("../project/entries.js").EntryListParams) => Promise>[2]) => Promise; get: (modelId: string, entryId: string) => Promise<{ entry: import("@moteurio/types").Entry; }>; create: (modelId: string, body: Record) => Promise<{ entry: import("@moteurio/types").Entry; }>; update: (modelId: string, entryId: string, body: Record) => Promise<{ entry: import("@moteurio/types").Entry; }>; delete: (modelId: string, entryId: string) => Promise; status: (modelId: string, entryId: string, status: string) => Promise<{ entry: Record; }>; submitReview: (modelId: string, entryId: string) => Promise<{ entry: Record; }>; }; pages: { list: () => Promise<{ pages: { [x: string]: unknown; }[]; }>; get: (pageId: string) => Promise<{ page: { [x: string]: unknown; }; }>; getBySlug: (slug: string) => Promise<{ page: { [x: string]: unknown; }; }>; create: (body: Record) => Promise<{ page: { [x: string]: unknown; }; }>; update: (pageId: string, body: Record) => Promise<{ page: { [x: string]: unknown; }; }>; reorder: (moves: PageMove[]) => Promise<{ pages: { [x: string]: unknown; }[]; }>; delete: (pageId: string) => Promise; status: (pageId: string, status: string) => Promise<{ page: { [x: string]: unknown; }; }>; submitReview: (pageId: string) => Promise>; }; templates: { list: () => Promise<{ templates: Record[]; }>; get: (templateId: string) => Promise<{ template: Record; }>; create: (body: Record) => Promise<{ template: Record; }>; update: (templateId: string, body: Record) => Promise<{ template: Record; }>; delete: (templateId: string) => Promise; }; layouts: { list: () => Promise<{ layouts: Record[]; }>; get: (layoutId: string) => Promise<{ layout: Record; }>; create: (body: Record) => Promise<{ layout: Record; }>; update: (layoutId: string, body: Record) => Promise<{ layout: Record; }>; delete: (layoutId: string) => Promise; }; structures: { list: () => Promise<{ structures: Record[]; }>; get: (structureId: string) => Promise<{ structure: Record; }>; create: (body: Record) => Promise<{ structure: Record; }>; update: (structureId: string, body: Record) => Promise<{ structure: Record; }>; delete: (structureId: string) => Promise; }; collections: { list: () => Promise<{ collections: Record[]; }>; get: (collectionId: string) => Promise<{ collection: Record; }>; create: (body: Record) => Promise<{ collection: Record; }>; update: (collectionId: string, body: Record) => Promise<{ collection: Record; }>; delete: (collectionId: string) => Promise; }; forms: { list: () => Promise<{ forms: Record[]; }>; get: (formId: string) => Promise<{ form: Record; }>; create: (body: Record) => Promise<{ form: Record; }>; update: (formId: string, body: Record) => Promise<{ form: Record; }>; delete: (formId: string) => Promise; }; submissions: { list: (formId: string, params?: SubmissionListParams) => Promise; get: (formId: string, submissionId: string) => Promise<{ submission: Record; }>; update: (formId: string, submissionId: string, patch: { read?: boolean; spam?: boolean; }) => Promise<{ submission: Record; }>; export: (formId: string, format?: "csv" | "json") => Promise; delete: (formId: string, submissionId: string) => Promise; }; navigations: { list: () => Promise<{ navigations: Record[]; }>; get: (navigationId: string) => Promise<{ navigation: Record; }>; create: (body: Record) => Promise<{ navigation: Record; }>; update: (navigationId: string, body: Record) => Promise<{ navigation: Record; }>; delete: (navigationId: string) => Promise; }; webhooks: { list: () => Promise<{ webhooks: Record[]; }>; get: (webhookId: string) => Promise<{ webhook: Record; }>; create: (body: Record) => Promise<{ webhook: Record; }>; update: (webhookId: string, body: Record) => Promise<{ webhook: Record; }>; delete: (webhookId: string) => Promise; test: (webhookId: string) => Promise<{ ok: boolean; status?: number; }>; }; schedules: { list: (options?: ListSchedulesOptions) => Promise<{ schedules: import("@moteurio/types").Schedule[]; }>; get: (scheduleId: string) => Promise; create: (body: CreateScheduleInput) => Promise; cancel: (scheduleId: string) => Promise; delete: (scheduleId: string) => Promise; }; assets: { list: (params?: { type?: string; folder?: string; search?: string; hash?: string; }) => Promise[]>; get: (id: string) => Promise>; upload: (formData: FormData) => Promise>; update: (id: string, body: Record) => Promise>; delete: (id: string) => Promise; bin: () => Promise[]>; restore: (id: string) => Promise>; replace: (id: string, formData: FormData) => Promise>; deleteForever: (id: string) => Promise; emptyBin: () => Promise<{ deleted: number; }>; regenerate: (assetIds?: string[], options?: { background?: boolean; }) => Promise<{ processed?: number; errors?: number; queued?: number; }>; move: (id: string, folder: string) => Promise>; }; assetConfig: { get: () => Promise>; update: (body: Record) => Promise>; }; mediaSettings: { get: () => Promise; update: (body: MediaSettingsUpdate) => Promise>; checkStorage: (body: StorageSettings) => Promise<{ ok: boolean; error?: string; }>; moveStorage: (body: StorageSettings) => Promise<{ moved: number; }>; }; blocks: { list: () => Promise>; get: (id: string) => Promise>; create: (body: Record) => Promise>; update: (id: string, body: Record) => Promise>; delete: (id: string) => Promise; }; apiKeys: { list: () => Promise; create: (body?: ProjectApiKeyCreateBody) => Promise; rotate: (keyId: string) => Promise; revoke: (keyId: string) => Promise; patch: (keyId: string, body: ProjectApiKeyPatchBody) => Promise; }; }; export type ProjectClient = ReturnType; //# sourceMappingURL=forProject.d.ts.map