import { StateStore } from "./state.js"; import type { Grant, ProfileEntry, ProfileKind, PublicGrant, SecretKind } from "./types.js"; export declare class PolicyService { private readonly store; constructor(store?: StateStore); listPublicGrants(): Promise; findForSite(site: string): Promise; listProfileEntries(): Promise; findProfileForSite(site?: string): Promise; createProfileEntry(input: { label: string; kind: ProfileKind; value: string; sites: string[]; enabled?: boolean; note?: string; }): Promise; updateProfileEntry(id: string, patch: Partial>): Promise; deleteProfileEntry(id: string): Promise; createFromCandidate(candidateToken: string, overrides: Partial): Promise; createManual(input: { title: string; secretRef: string; sites: string[]; username?: string; fieldLabel?: string; kind?: SecretKind; note?: string; enabled?: boolean; }): Promise; updateGrant(id: string, patch: Partial>): Promise; deleteGrant(id: string): Promise; deleteGrantsForItem(itemId: string, vaultId?: string, vaultName?: string): Promise; resolveHandle(handle: string, expectedSite?: string): Promise<{ grant: Grant; secretRef: string; }>; markUsed(grantId: string, type: "secret.copied" | "secret.pasted", site?: string): Promise; private createGrant; private toPublicGrant; }